]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llava : removed excess free(NULL) operation (#5531)
authorHerman Semenov <redacted>
Fri, 16 Feb 2024 12:43:23 +0000 (12:43 +0000)
committerGitHub <redacted>
Fri, 16 Feb 2024 12:43:23 +0000 (14:43 +0200)
examples/llava/llava.cpp

index 4ed310a0e7f73a4e470cad8b976ae2a2523175d1..4cb65a07b67405ad36a25a8cbe7e52b00d4d02df 100644 (file)
@@ -315,7 +315,6 @@ static bool llava_image_embed_make_with_clip_img(clip_ctx * ctx_clip, int n_thre
     float * image_embd = (float *)malloc(clip_embd_nbytes(ctx_clip)*6); // TODO: base on gridsize/llava model
     if (!image_embd) {
         fprintf(stderr, "Unable to allocate memory for image embeddings\n");
-        free(image_embd);
         return false;
     }