From 20a4e41730f5075ded813b8632ce95de90327d48 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Thu, 25 Feb 2021 02:28:16 +0100 Subject: [PATCH] q3map2: fix a leak (an allocated string not being freed before returning) --- tools/quake3/common/vfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/quake3/common/vfs.c b/tools/quake3/common/vfs.c index f62be13c..62881b5e 100644 --- a/tools/quake3/common/vfs.c +++ b/tools/quake3/common/vfs.c @@ -412,6 +412,7 @@ int vfsLoadFile( const char *filename, void **bufferptr, int index ){ i = unzReadCurrentFile( file->zipfile, *bufferptr, file->size ); unzCloseCurrentFile( file->zipfile ); if ( i < 0 ) { + g_free( lower ); return -1; } else{ -- 2.39.2