Skip to content

Commit

Permalink
fix resource leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Vasudeo Desai committed Oct 31, 2024
1 parent 3f0b69f commit 7dfaac2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ogsf/gsd_img_tif.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ int GS_write_tif(const char *name)
}

G_free((void *)pixbuf);
G_free(buf);
(void)TIFFClose(out);

return (0);
Expand Down

0 comments on commit 7dfaac2

Please sign in to comment.