diff options
author | 2012-02-08 13:50:06 +0800 | |
---|---|---|
committer | 2012-02-08 13:50:06 +0800 | |
commit | faad9648cf8003c731ab1518550c7d3c67c21a1d (patch) | |
tree | 82f69916db1f9fc7827a2499625acbf76f0c910a | |
parent | virsh: Do not check the input XML at virsh layer for cmdDetachDevice (diff) | |
download | libvirt-faad9648cf8003c731ab1518550c7d3c67c21a1d.tar.gz libvirt-faad9648cf8003c731ab1518550c7d3c67c21a1d.tar.bz2 libvirt-faad9648cf8003c731ab1518550c7d3c67c21a1d.zip |
virsh: Plug memory leak on cmdDesc
-rw-r--r-- | tools/virsh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/virsh.c b/tools/virsh.c index bff7d5d90..c107d8cdd 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -1167,6 +1167,8 @@ cleanup: unlink(tmp); VIR_FREE(tmp); } + if (dom) + virDomainFree(dom); return ret; } |