radv: don't leak DRM devices
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 2 May 2017 17:05:07 +0000 (20:05 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 3 May 2017 19:04:52 +0000 (22:04 +0300)
commit8aab792e92d8f7d20a1e34169e8a714291ba1c6f
tree52b022b393940bf475dea6c2ac54167ae9709120
parent898cbb491b3c02697f006d175d5689893bdf929b
radv: don't leak DRM devices

After successful drmGetDevices2() call, drmFreeDevices() needs to be called.

Fixes: 743315f2 "radv: do not open random render node(s)"
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c