nouveau/winsys: fix bda heap leak.
found with valgrind.
Fixes: b4cfac64c8 ("nvk: Add a separate VMA heap for BDA capture/replay")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27712>
(cherry picked from commit fd04c14306882693e5ba95fd7a128800c3069f5b)
This commit is contained in:
parent
0f8d77fc04
commit
2bc85abbf2
2 changed files with 3 additions and 1 deletions
|
|
@ -2054,7 +2054,7 @@
|
|||
"description": "nouveau/winsys: fix bda heap leak.",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "b4cfac64c8a98026d3698a2231c09a21bbe5a2f4",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -351,6 +351,7 @@ nouveau_ws_device_new(drmDevicePtr drm_device)
|
|||
out_err:
|
||||
if (device->has_vm_bind) {
|
||||
util_vma_heap_finish(&device->vma_heap);
|
||||
util_vma_heap_finish(&device->bda_heap);
|
||||
simple_mtx_destroy(&device->vma_mutex);
|
||||
}
|
||||
if (ver)
|
||||
|
|
@ -372,6 +373,7 @@ nouveau_ws_device_destroy(struct nouveau_ws_device *device)
|
|||
|
||||
if (device->has_vm_bind) {
|
||||
util_vma_heap_finish(&device->vma_heap);
|
||||
util_vma_heap_finish(&device->bda_heap);
|
||||
simple_mtx_destroy(&device->vma_mutex);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue