mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 01:45:19 +01:00
filesystem: zip: fix non-heap object dealloc
This commit is contained in:
parent
2e5bc31c9e
commit
0a1269d52d
@ -299,7 +299,6 @@ static zip_t *FS_LoadZip( const char *zipfile, int *error )
|
|||||||
if( error )
|
if( error )
|
||||||
*error = ZIP_LOAD_BAD_HEADER;
|
*error = ZIP_LOAD_BAD_HEADER;
|
||||||
|
|
||||||
Mem_Free( info );
|
|
||||||
FS_CloseZIP( zip );
|
FS_CloseZIP( zip );
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -316,7 +315,6 @@ static zip_t *FS_LoadZip( const char *zipfile, int *error )
|
|||||||
if( error )
|
if( error )
|
||||||
*error = ZIP_LOAD_CORRUPTED;
|
*error = ZIP_LOAD_CORRUPTED;
|
||||||
|
|
||||||
Mem_Free( info );
|
|
||||||
FS_CloseZIP( zip );
|
FS_CloseZIP( zip );
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -364,7 +362,6 @@ static zip_t *FS_LoadZip( const char *zipfile, int *error )
|
|||||||
if( error )
|
if( error )
|
||||||
*error = ZIP_LOAD_CORRUPTED;
|
*error = ZIP_LOAD_CORRUPTED;
|
||||||
|
|
||||||
Mem_Free( info );
|
|
||||||
FS_CloseZIP( zip );
|
FS_CloseZIP( zip );
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user