mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Merge pull request #3674 from 678098/patch-2
Fix(minizip/mztools.c): prevent file descriptor leak
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user