Commit 92d975a7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix leaks in case of decompression failure (backport [17762])

parent 8f5bcad3
......@@ -1331,6 +1331,7 @@ static int Decompress( unsigned char *psz_src, unsigned char **_dst, int i_len )
if( ( i_result != Z_OK ) && ( i_result != Z_STREAM_END ) )
{
printf( "Zlib decompression failed. Result: %d\n", i_result );
inflateEnd( &d_stream );
return( -1 );
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment