]> xenbits.xensource.com Git - libvirt.git/commitdiff
LXC: free dst before lxcDomainAttachDeviceDiskLive returns
authorChen Hanxiao <chenhanxiao@cn.fujitsu.com>
Thu, 26 Sep 2013 06:01:52 +0000 (14:01 +0800)
committerJán Tomko <jtomko@redhat.com>
Thu, 26 Sep 2013 13:13:55 +0000 (15:13 +0200)
Free dst before lxcDomainAttachDeviceDiskLive returns

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
src/lxc/lxc_driver.c

index 4cf0b50145077f8452e153ec116628f8bd4b8e6b..32cc020531d6b56a4db67ad5ce79208bf8146d22 100644 (file)
@@ -3023,6 +3023,7 @@ cleanup:
     virDomainAuditDisk(vm, NULL, def->src, "attach", ret == 0);
     if (dst && created && ret < 0)
         unlink(dst);
+    VIR_FREE(dst);
     return ret;
 }