summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2009-11-18 10:48:01 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 15:26:00 -0600
commit7078dead94a24bc4e5819e4a6448bd5738a2d088 (patch)
treeed95caa3d2f5b4c6059429fb3a2868ae9727f34f
parentFix compile error when LSI_DEBUG is defined (diff)
downloadqemu-kvm-7078dead94a24bc4e5819e4a6448bd5738a2d088.tar.gz
qemu-kvm-7078dead94a24bc4e5819e4a6448bd5738a2d088.tar.bz2
qemu-kvm-7078dead94a24bc4e5819e4a6448bd5738a2d088.zip
qemu-img: Fix memory leak
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--qemu-img.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-img.c b/qemu-img.c
index 576b7f7ef..1d97f2ebf 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -607,6 +607,7 @@ static int img_convert(int argc, char **argv)
if (options && !strcmp(options, "?")) {
print_option_help(drv->create_options);
+ free(bs);
return 0;
}