Patchwork qemu-img: Fix memory leak

login
register
mail settings
Submitter Kevin Wolf
Date Nov. 18, 2009, 9:48 a.m.
Message ID <1258537681-25629-1-git-send-email-kwolf@redhat.com>
Download mbox | patch
Permalink /patch/38739/
State New
Headers show

Comments

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

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;
     }