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>
(cherry picked from commit 163390d762ba45c285d0ccafcbdd68f760d9b640)
This commit is contained in:
Riteo 2022-08-16 11:41:59 +02:00 committed by Dylan Baker
parent 20886cf572
commit 242b498115
2 changed files with 3 additions and 1 deletions

View File

@ -13432,7 +13432,7 @@
"description": "vulkan/device_select_wayland: fix a memory leak with DRM device handling",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

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)