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:
Dylan Baker 2025-03-21 09:07:47 -07:00 committed by Marge Bot
parent da14c0af67
commit ff4b1b1e43

View file

@ -730,6 +730,7 @@ static uint32_t zlib_inflate(const void *compressed_data,
case Z_OK:
break;
default:
free(out);
inflateEnd(&zstream);
return 0;
}