mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-20 15:25:38 +00:00
Common: Fix double free on opening invalid zip file
This commit is contained in:
parent
bdafbe0b28
commit
69c9133cd4
|
@ -65,11 +65,7 @@ namespace MinizipHelpers {
|
||||||
|
|
||||||
#undef FI
|
#undef FI
|
||||||
|
|
||||||
unzFile zf = unzOpen2_64("", &funcs);
|
return unzOpen2_64("", &funcs);
|
||||||
if (!zf)
|
|
||||||
delete fi;
|
|
||||||
|
|
||||||
return zf;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[[maybe_unused]] static unzFile OpenUnzFile(const char* filename)
|
[[maybe_unused]] static unzFile OpenUnzFile(const char* filename)
|
||||||
|
|
Loading…
Reference in a new issue