diff options
author | Herman Semenov <GermanAizek@yandex.ru> | 2024-02-16 12:43:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 14:43:23 +0200 |
commit | 4cb072769804c77ab466bc8351c76ede9d5ba49d (patch) | |
tree | 663379159d0a2b5d793f50613fe695e5d2ffc187 | |
parent | 65085c713e14f78cdda6abc275b1a5d8c2b8ca15 (diff) |
llava : removed excess free(NULL) operation (#5531)
-rw-r--r-- | examples/llava/llava.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/llava/llava.cpp b/examples/llava/llava.cpp index 4ed310a0..4cb65a07 100644 --- a/examples/llava/llava.cpp +++ b/examples/llava/llava.cpp @@ -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; } |