From 3d4b3f257fbbb69c6f236d9803abe54a90d7d434 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 18 Mar 2010 12:48:39 +1000 Subject: intel: free bus id in error path after printing it out. the error message prints out a freed string, spotted during code reappropriation to radeon driver. Signed-off-by: Dave Airlie --- src/i830_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i830_driver.c b/src/i830_driver.c index 53d86636..22e8472d 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -649,10 +649,10 @@ static Bool i830_open_drm_master(ScrnInfoPtr scrn) intel->drmSubFD = drmOpen("i915", busid); if (intel->drmSubFD == -1) { - xfree(busid); xf86DrvMsg(scrn->scrnIndex, X_ERROR, "[drm] Failed to open DRM device for %s: %s\n", busid, strerror(errno)); + xfree(busid); return FALSE; } -- cgit v1.2.3