From: Thomas Debesse Date: Thu, 25 Feb 2021 01:28:16 +0000 (+0100) Subject: q3map2: fix a leak (an allocated string not being freed before returning) X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=20a4e41730f5075ded813b8632ce95de90327d48;p=xonotic%2Fnetradiant.git q3map2: fix a leak (an allocated string not being freed before returning) --- 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{