mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Merge pull request #3674 from 678098/patch-2
Fix(minizip/mztools.c): prevent file descriptor leak
This commit is contained in:
commit
148cfc6cbc
@ -285,6 +285,13 @@ uLong* bytesRecovered;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (fpZip)
|
||||
fclose(fpZip);
|
||||
if (fpOut)
|
||||
fclose(fpOut);
|
||||
if (fpOutCD)
|
||||
fclose(fpOutCD);
|
||||
|
||||
err = Z_STREAM_ERROR;
|
||||
}
|
||||
return err;
|
||||
|
Loading…
Reference in New Issue
Block a user