1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-04 22:49:15 +00:00

Merge pull request #3789 from gogolovefish/master

fix Resource leak
This commit is contained in:
Jens Steube 2023-07-03 19:11:22 +02:00 committed by GitHub
commit bfa7183370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ uLong* bytesRecovered;
FILE* fpZip = fopen(file, "rb");
FILE* fpOut = fopen(fileOut, "wb");
FILE* fpOutCD = fopen(fileOutTmp, "wb");
if (fpZip != NULL && fpOut != NULL) {
if (fpZip != NULL && fpOut != NULL && fpOutCD !=NULL) {
int entries = 0;
uLong totalBytes = 0;
char header[30];