radv/winsys: Fix mem leak at failed do_winsys_init() call site
authorEdward O'Callaghan <funfunctor@folklore1984.net>
Tue, 11 Oct 2016 11:43:07 +0000 (22:43 +1100)
committerDave Airlie <airlied@redhat.com>
Tue, 11 Oct 2016 22:46:10 +0000 (08:46 +1000)
commite0641c61ca5cb8bba2e4cb5a0a6eede74f11ebc6
tree9f8b830906d054c761072737b78f0444c687b45f
parent4a0db58f144d5476bf3fe277848d946d224779c7
radv/winsys: Fix mem leak at failed do_winsys_init() call site

Probably unlikely however ensure we don't leak a heap allocation
on the fail path.

V.2:
 also fix missing 'amdgpu_device_deinitialize()' calls (Emil Velikov).

Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c