mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
qemu-img: Plug memory leak on block option help error path
Introduced in commit a283cb6
; mostly harmless. 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
d7d3d6092c
commit
ebee92b4fe
1 changed files with 1 additions and 0 deletions
|
@ -287,6 +287,7 @@ static int print_block_option_help(const char *filename, const char *fmt)
|
|||
proto_drv = bdrv_find_protocol(filename, true);
|
||||
if (!proto_drv) {
|
||||
error_report("Unknown protocol '%s'", filename);
|
||||
free_option_parameters(create_options);
|
||||
return 1;
|
||||
}
|
||||
create_options = append_option_parameters(create_options,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue