提交 3c3c3e36 编写于 作者: Z ZhiPeng Lu 提交者: Laine Stump

virpcimock: Fix memory leak in pci_driver_new

driverpath, allocated by virAsprintfQuiet, was not freed and leaked.
Signed-off-by: NZhipeng Lu <lu.zhipeng@zte.com.cn>
上级 8a75cc4f
......@@ -511,6 +511,8 @@ pci_driver_new(const char *name, int fail, ...)
if (VIR_APPEND_ELEMENT_QUIET(pciDrivers, nPCIDrivers, driver) < 0)
ABORT_OOM();
VIR_FREE(driverpath);
}
static struct pciDriver *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册