Skip to content

Commit 4cb0727

Browse files
authored
llava : removed excess free(NULL) operation (#5531)
1 parent 65085c7 commit 4cb0727

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

examples/llava/llava.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ static bool llava_image_embed_make_with_clip_img(clip_ctx * ctx_clip, int n_thre
315315
float * image_embd = (float *)malloc(clip_embd_nbytes(ctx_clip)*6); // TODO: base on gridsize/llava model
316316
if (!image_embd) {
317317
fprintf(stderr, "Unable to allocate memory for image embeddings\n");
318-
free(image_embd);
319318
return false;
320319
}
321320

0 commit comments

Comments
 (0)