vulkan: Fix memory leaks.
authorVinson Lee <vlee@freedesktop.org>
Mon, 31 Aug 2020 00:39:43 +0000 (17:39 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Sep 2020 00:47:19 +0000 (00:47 +0000)
commit004119d5b7d4b1679e6dd691e9ab2ab7d65f8516
treed5fc3aaafb4978be1fe771071c8ea95d1e8b6eb1
parent50e14c3d258f5be887b4101cc3b01bb16ad50caa
vulkan: Fix memory leaks.

Fix warnings reported by Coverity Scan.

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

Fixes: 9bc5b2d169d3 ("vulkan: add initial device selection layer. (v6.1)")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6509>
src/vulkan/device-select-layer/device_select_layer.c