mirror of https://github.com/xemu-project/xemu.git
qemu-img: Plug memory leak in convert command
Introduced in commit661a0f7
. 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 commitbb9cd2ee99
) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
df9c108acd
commit
cb34d1e9e9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue