diff options
author | Grazvydas Ignotas <[email protected]> | 2017-05-02 20:11:06 +0300 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-05-18 18:00:41 +0100 |
commit | f56fff79e73770cd7755547dacbc7105e95170b9 (patch) | |
tree | f1fbfec0d312e31b2fd75695d1c7c97698f55879 /src/intel | |
parent | 70cbcb2d399bcf10a846016864bb0febaecf2997 (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
(cherry picked from commit 0ef302638f2883789a3b39c2b6cfd20814efa0bb)
Diffstat (limited to 'src/intel')
-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 e3f1e5a6cfc..823b97dd371 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -468,6 +468,7 @@ anv_enumerate_devices(struct anv_instance *instance) break; } } + drmFreeDevices(devices, max_devices); if (result == VK_SUCCESS) instance->physicalDeviceCount = 1; |