From: Chen Hanxiao Date: Thu, 26 Sep 2013 06:01:52 +0000 (+0800) Subject: LXC: free dst before lxcDomainAttachDeviceDiskLive returns X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2eec7e03572db3e9ab9a68b3e78cd90835e8c73d;p=thirdparty%2Flibvirt.git LXC: free dst before lxcDomainAttachDeviceDiskLive returns Free dst before lxcDomainAttachDeviceDiskLive returns Signed-off-by: Chen Hanxiao (cherry picked from commit c82513acc2e1e0b035e5e53577a34fd68a530788) --- diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index 1687329482..1f092bcbcf 100644 --- a/src/lxc/lxc_driver.c +++ b/src/lxc/lxc_driver.c @@ -3235,6 +3235,7 @@ cleanup: virDomainAuditDisk(vm, NULL, def->src, "attach", ret == 0); if (dst && created && ret < 0) unlink(dst); + VIR_FREE(dst); return ret; }