intel/perf: Fix memory leak.
authorVinson Lee <vlee@freedesktop.org>
Sun, 20 Nov 2022 21:53:06 +0000 (13:53 -0800)
committerVinson Lee <vlee@freedesktop.org>
Wed, 23 Nov 2022 06:17:02 +0000 (22:17 -0800)
commit86f353ed23d2d59d225d3dd00d350a9fb733e5e3
treef441824762914bee23fa9aa91a66310023191253
parent15c1a9ed600c0c7a0ee8486d0e1ac791cb058384
intel/perf: Fix memory leak.

Fix defect with Coverity Scan.

Resource leak (RESOURCE_LEAK)
leaked_storage: Variable pass_array going out of scope leaks the storage it points to.

Fixes: d4cbb665067 ("intel/perf: support more than 64 queries")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19888>
src/intel/perf/intel_perf.c