Commit b6eb8cf0 authored by Adam Richter's avatar Adam Richter

hw/xfree86/os-support/linux/lnx_agp.c xf86GetAGPInfo(): free(info) in an error...

hw/xfree86/os-support/linux/lnx_agp.c xf86GetAGPInfo(): free(info) in an error path, caught by cppcheck.
parent 99904a3a
......@@ -143,6 +143,7 @@ xf86GetAGPInfo(int screenNum)
xf86DrvMsg(screenNum, X_ERROR,
"xf86GetAGPInfo: AGPIOC_INFO failed (%s)\n",
strerror(errno));
free(info);
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment