hw/xfree86/os-support/linux/lnx_agp.c xf86GetAGPInfo(): free(info) in an error path, caught by cppcheck.

This commit is contained in:
Adam Richter 2019-05-01 15:22:02 -07:00
parent 99904a3a7b
commit b6eb8cf03f

View File

@ -143,6 +143,7 @@ xf86GetAGPInfo(int screenNum)
xf86DrvMsg(screenNum, X_ERROR,
"xf86GetAGPInfo: AGPIOC_INFO failed (%s)\n",
strerror(errno));
free(info);
return NULL;
}