diff options
author | Grazvydas Ignotas <[email protected]> | 2017-05-02 20:11:06 +0300 |
---|---|---|
committer | Grazvydas Ignotas <[email protected]> | 2017-05-10 01:13:44 +0300 |
commit | 0ef302638f2883789a3b39c2b6cfd20814efa0bb (patch) | |
tree | 89348cb3610c93a134484ec52de6fd1c427f7802 /src/intel/vulkan/anv_device.c | |
parent | e0aee8b667955675e2e6c647a88048b64bc2796e (diff) |
anv: don't leak DRM devices
After successful drmGetDevices2() call, drmFreeDevices() needs to be
called.
Fixes: b1fb6e8d "anv: do not open random render node(s)"
Signed-off-by: Grazvydas Ignotas <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]> # radv version
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index a64eae1ac99..35e40301a31 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -526,6 +526,7 @@ anv_enumerate_devices(struct anv_instance *instance) break; } } + drmFreeDevices(devices, max_devices); if (result == VK_SUCCESS) instance->physicalDeviceCount = 1; |