From 7d878593c3fa3e8009e394097876a8a0812c13ec Mon Sep 17 00:00:00 2001 From: ShubhamDesai <42180509+ShubhamDesai@users.noreply.github.com> Date: Tue, 5 Nov 2024 03:06:44 -0500 Subject: [PATCH] lib/ogsf: Fix resource leak issue in gsd_img_tif.c (#4626) --- lib/ogsf/gsd_img_tif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ogsf/gsd_img_tif.c b/lib/ogsf/gsd_img_tif.c index 47f9b4ebbc5..c2518bb8bea 100644 --- a/lib/ogsf/gsd_img_tif.c +++ b/lib/ogsf/gsd_img_tif.c @@ -116,6 +116,7 @@ int GS_write_tif(const char *name) } G_free((void *)pixbuf); + G_free(buf); (void)TIFFClose(out); return (0);