hw/xfree86/os-support/linux/lnx_agp.c xf86GetAGPInfo(): free(info) in an error path, caught by cppcheck.
This commit is contained in:
parent
99904a3a7b
commit
b6eb8cf03f
|
@ -143,6 +143,7 @@ xf86GetAGPInfo(int screenNum)
|
|||
xf86DrvMsg(screenNum, X_ERROR,
|
||||
"xf86GetAGPInfo: AGPIOC_INFO failed (%s)\n",
|
||||
strerror(errno));
|
||||
free(info);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user