From 7dfaac24f7d13e9d41a555a40b9b1a2d10558e27 Mon Sep 17 00:00:00 2001 From: Shubham Vasudeo Desai Date: Thu, 31 Oct 2024 19:17:03 -0400 Subject: [PATCH] fix resource leak --- 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);