mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 13:17:58 +03:00
Fix two memory leaks in domain conf and LXC code
This commit is contained in:
parent
660418cff4
commit
c67700be8a
@ -1,3 +1,9 @@
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user