Common: Fix double free on opening invalid zip file

This commit is contained in:
Stenzek 2024-04-05 14:48:16 +10:00
parent bdafbe0b28
commit 69c9133cd4
No known key found for this signature in database
1 changed files with 1 additions and 5 deletions

View File

@ -65,11 +65,7 @@ namespace MinizipHelpers {
#undef FI
unzFile zf = unzOpen2_64("", &funcs);
if (!zf)
delete fi;
return zf;
return unzOpen2_64("", &funcs);
}
[[maybe_unused]] static unzFile OpenUnzFile(const char* filename)