summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2010-01-19 23:29:56 +0100
committerJakob Bornecrantz <[email protected]>2010-01-19 23:30:30 +0100
commitc78fe6e050c311a3d53ccb091686a65ee6933a90 (patch)
treef2fe25b1a803ade6cfa845a8a8bfd5a5a2b83b40 /src
parent65354a7e3d8fd094837b7a999e8975dcfbd9d9c9 (diff)
st/xorg: Don't leak BusID buffer
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/xorg/xorg_driver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_driver.c b/src/gallium/state_trackers/xorg/xorg_driver.c
index ed185d314f7..b74953e5432 100644
--- a/src/gallium/state_trackers/xorg/xorg_driver.c
+++ b/src/gallium/state_trackers/xorg/xorg_driver.c
@@ -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;