From 9c88f97acb6030bb993bddaff110dd2aa6f910e9 Mon Sep 17 00:00:00 2001 From: Chen Hanxiao Date: Thu, 26 Sep 2013 14:01:52 +0800 Subject: [PATCH] LXC: free dst before lxcDomainAttachDeviceDiskLive returns Free dst before lxcDomainAttachDeviceDiskLive returns Signed-off-by: Chen Hanxiao (cherry picked from commit c82513acc2e1e0b035e5e53577a34fd68a530788) --- src/lxc/lxc_driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index cf7b62c8c9..a6efaa43f3 100644 --- a/src/lxc/lxc_driver.c +++ b/src/lxc/lxc_driver.c @@ -3177,6 +3177,7 @@ cleanup: virDomainAuditDisk(vm, NULL, def->src, "attach", ret == 0); if (dst && created && ret < 0) unlink(dst); + VIR_FREE(dst); return ret; } -- GitLab