From 0a1269d52de454fd5eb7906d392cbb56d54b9384 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 30 Sep 2024 01:23:58 +0300 Subject: [PATCH] filesystem: zip: fix non-heap object dealloc --- filesystem/zip.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/filesystem/zip.c b/filesystem/zip.c index 56e53821..955e662d 100644 --- a/filesystem/zip.c +++ b/filesystem/zip.c @@ -299,7 +299,6 @@ static zip_t *FS_LoadZip( const char *zipfile, int *error ) if( error ) *error = ZIP_LOAD_BAD_HEADER; - Mem_Free( info ); FS_CloseZIP( zip ); return NULL; } @@ -316,7 +315,6 @@ static zip_t *FS_LoadZip( const char *zipfile, int *error ) if( error ) *error = ZIP_LOAD_CORRUPTED; - Mem_Free( info ); FS_CloseZIP( zip ); return NULL; } @@ -364,7 +362,6 @@ static zip_t *FS_LoadZip( const char *zipfile, int *error ) if( error ) *error = ZIP_LOAD_CORRUPTED; - Mem_Free( info ); FS_CloseZIP( zip ); return NULL; }