Skip to content

Commit

Permalink
qemu-img: Plug memory leak in convert command
Browse files Browse the repository at this point in the history
Introduced in commit 661a0f7.  Spotted by Coverity.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit bb9cd2e)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
  • Loading branch information
Markus Armbruster authored and mdroth committed Jul 3, 2014
1 parent df9c108 commit cb34d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qemu-img.c
Expand Up @@ -1355,7 +1355,7 @@ static int img_convert(int argc, char **argv)
ret = bdrv_parse_cache_flags(cache, &flags);
if (ret < 0) {
error_report("Invalid cache option: %s", cache);
return -1;
goto out;
}

out_bs = bdrv_new_open(out_filename, out_fmt, flags, true, quiet);
Expand Down

0 comments on commit cb34d1e

Please sign in to comment.