qemu-img: Fix memory leak

Submitted by Kevin Wolf on Nov. 18, 2009, 9:48 a.m.

Details

Message ID 1258537681-25629-1-git-send-email-kwolf@redhat.com
State New
Headers show

Commit Message

Kevin Wolf Nov. 18, 2009, 9:48 a.m.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
 qemu-img.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

diff --git a/qemu-img.c b/qemu-img.c
index 972843a..e4ffe46 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;
     }