提交 c67700be 编写于 作者: D Daniel P. Berrange

Fix two memory leaks in domain conf and LXC code

上级 660418cf
Fri Nov 21 11:37:14 BST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/domain_conf.c: Fix two memory leaks in virDomainLoadConfig
* src/lxc_driver.c: Fix leak of capabilities object in driver
shutdown code
Fri Nov 21 10:20:14 BST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/remote_internal.c: Return VIR_NO_SUPPORT if requested
......
......@@ -3279,6 +3279,8 @@ virDomainObjPtr virDomainLoadConfig(virConnectPtr conn,
if (notify)
(*notify)(dom, newVM, opaque);
VIR_FREE(configFile);
VIR_FREE(autostartLink);
return dom;
error:
......
......@@ -1071,6 +1071,7 @@ static int lxcStartup(void)
static void lxcFreeDriver(lxc_driver_t *driver)
{
virCapabilitiesFree(driver->caps);
VIR_FREE(driver->configDir);
VIR_FREE(driver->autostartDir);
VIR_FREE(driver->stateDir);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册