]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
q3map2: fix a leak (an allocated string not being freed before returning)
authorThomas Debesse <dev@illwieckz.net>
Thu, 25 Feb 2021 01:28:16 +0000 (02:28 +0100)
committerThomas Debesse <dev@illwieckz.net>
Fri, 5 Mar 2021 02:17:08 +0000 (03:17 +0100)
tools/quake3/common/vfs.c

index f62be13c9391cfa4b849262097185df912980899..62881b5e22e167be40135b7c48113c3073d521a6 100644 (file)
@@ -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{