Skip to content

Commit

Permalink
fix memory leak in bmp_open
Browse files Browse the repository at this point in the history
Signed-off-by: Francois Berder <[email protected]>
  • Loading branch information
francois-berder committed Mar 29, 2022
1 parent 69f653a commit 145818b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ struct image *bmp_open(FILE *f){

if(b->compression){
fprintf(stderr, "unsupported compression method %i\n", b->compression);
free(b);
return NULL;
}

Expand Down

0 comments on commit 145818b

Please sign in to comment.