panfrost: Fix headers and gpu_headers memory leak
The per-batch headers/gpu_headers dynarrays need to be freed during the batch cleanup to prevent leaking. Signed-off-by: Daniel Ogorchock <daniel.ogorchock@garmin.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3308> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3308>
This commit is contained in:
parent
2848edc0ef
commit
632885741f
|
@ -181,6 +181,9 @@ panfrost_free_batch(struct panfrost_batch *batch)
|
|||
panfrost_batch_fence_unreference(*dep);
|
||||
}
|
||||
|
||||
util_dynarray_fini(&batch->headers);
|
||||
util_dynarray_fini(&batch->gpu_headers);
|
||||
|
||||
/* The out_sync fence lifetime is different from the the batch one
|
||||
* since other batches might want to wait on a fence of already
|
||||
* submitted/signaled batch. All we need to do here is make sure the
|
||||
|
|
Loading…
Reference in New Issue