intel/decoder: free memory in error case
This was handled in other instances in a previous patch, but this instance remains, as the zlib decompression routine is slightly different. Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34118>
This commit is contained in:
@@ -730,6 +730,7 @@ static uint32_t zlib_inflate(const void *compressed_data,
|
||||
case Z_OK:
|
||||
break;
|
||||
default:
|
||||
free(out);
|
||||
inflateEnd(&zstream);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user