radv: fix a memleak if the physical device initialization failed
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 29 Apr 2020 12:03:24 +0000 (14:03 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 6 May 2020 06:44:20 +0000 (06:44 +0000)
commit9c62e63aca202bef07b20441618dd360b94b2f7d
treecf99bc76eafd4fb9fae7cfa931e2d4b4c44b9347
parentb867a677e99f429d904021b37c5640d3eeaf0e8d
radv: fix a memleak if the physical device initialization failed

The disk cache object should be freed.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4806>
src/amd/vulkan/radv_device.c