radv/winsys: Fix memory leak.
authorVinson Lee <vlee@freedesktop.org>
Mon, 31 Aug 2020 00:52:32 +0000 (17:52 -0700)
committerVinson Lee <vlee@freedesktop.org>
Tue, 1 Sep 2020 00:33:51 +0000 (17:33 -0700)
commit50e14c3d258f5be887b4101cc3b01bb16ad50caa
treedc3976b65e339a10ff36abf46dbdf4ae5689807c
parentb778e7bd6c1d82ce739d7e278de00ee600532cd5
radv/winsys: Fix memory leak.

Fix warning reported by Coverity Scan.

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

Fixes 485ea7d711fc ("radv/winsys: pass the buffer list via the CS ioctl for less CPU overhead")

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6510>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c