diff options
author | Dave Airlie <airlied@redhat.com> | 2010-03-18 12:48:39 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-03-18 12:48:39 +1000 |
commit | 3d4b3f257fbbb69c6f236d9803abe54a90d7d434 (patch) | |
tree | fe3dd3f1fb2c30ef5a1c63322b8386093987a9f3 | |
parent | 31d5f84bb4416ef92abd97264d52cdab7a184687 (diff) |
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 <airlied@redhat.com>
-rw-r--r-- | src/i830_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |