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>
This commit is contained in:
Dave Airlie 2010-03-18 12:48:39 +10:00
parent 31d5f84bb4
commit 3d4b3f257f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}