st/xorg: Don't leak BusID buffer
authorJakob Bornecrantz <jakob@vmware.com>
Tue, 19 Jan 2010 22:29:56 +0000 (23:29 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Tue, 19 Jan 2010 22:30:30 +0000 (23:30 +0100)
src/gallium/state_trackers/xorg/xorg_driver.c

index ed185d314f7601c71f423341274e21a06270f640..b74953e54327e6a47b38dc178f7a450a7ba0ed87 100644 (file)
@@ -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;