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:
parent
31d5f84bb4
commit
3d4b3f257f
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue