mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
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:
parent
da14c0af67
commit
ff4b1b1e43
1 changed files with 1 additions and 0 deletions
|
|
@ -730,6 +730,7 @@ static uint32_t zlib_inflate(const void *compressed_data,
|
|||
case Z_OK:
|
||||
break;
|
||||
default:
|
||||
free(out);
|
||||
inflateEnd(&zstream);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue