From bd3a3b8360772eb9a18f0b0cc2d9a6109091e570 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 31 Mar 2023 01:57:08 -0700 Subject: [PATCH] Util: Fix memory leak in mImageLoadVF --- src/util/image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/image.c b/src/util/image.c index b24fd3f50..c074c6b91 100644 --- a/src/util/image.c +++ b/src/util/image.c @@ -91,6 +91,7 @@ static struct mImage* mImageLoadPNG(struct VFile* vf) { PNGReadClose(png, info, end); return NULL; } + PNGReadClose(png, info, end); return image; } #endif