mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
st/xorg: Don't leak BusID buffer
This commit is contained in:
parent
65354a7e3d
commit
c78fe6e050
1 changed files with 1 additions and 0 deletions
|
|
@ -209,6 +209,7 @@ drv_init_drm(ScrnInfoPtr pScrn)
|
|||
|
||||
ms->api = drm_api_create();
|
||||
ms->fd = drmOpen(ms->api ? ms->api->driver_name : NULL, BusID);
|
||||
xfree(BusID);
|
||||
|
||||
if (ms->fd >= 0)
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue