mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 08:17:53 -06:00
qemu-img: Plug memory leak in convert command
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>
This commit is contained in:
parent
2df5fee2db
commit
bb9cd2ee99
1 changed files with 1 additions and 1 deletions
|
@ -1455,7 +1455,7 @@ static int img_convert(int argc, char **argv)
|
||||||
ret = bdrv_parse_cache_flags(cache, &flags);
|
ret = bdrv_parse_cache_flags(cache, &flags);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
error_report("Invalid cache option: %s", cache);
|
error_report("Invalid cache option: %s", cache);
|
||||||
return -1;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
out_bs = bdrv_new_open("target", out_filename, out_fmt, flags, true, quiet);
|
out_bs = bdrv_new_open("target", out_filename, out_fmt, flags, true, quiet);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue