qemu-img: Fix memory leak

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Kevin Wolf 2009-11-18 10:48:01 +01:00 committed by Anthony Liguori
parent b4b2f05403
commit 7078dead94

View file

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