vulkan/device_select_wayland: fix a memory leak with DRM device handling

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18076>
This commit is contained in:
Riteo 2022-08-16 11:41:59 +02:00 committed by Marge Bot
parent 995480a3f7
commit 163390d762

View file

@ -137,6 +137,8 @@ int device_select_find_wayland_pci_default(struct device_pci_info *devices, uint
if (default_idx != -1)
break;
}
drmFreeDevice(&info.dev_info);
}
if (info.wl_drm)