mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
block/crypto: Fix memory leak in create error path
Fixes: Coverity CID 1393782 Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
824808dd77
commit
0b68589d17
1 changed files with 1 additions and 1 deletions
|
@ -551,7 +551,7 @@ static int coroutine_fn block_crypto_co_create_opts_luks(const char *filename,
|
||||||
/* Create protocol layer */
|
/* Create protocol layer */
|
||||||
ret = bdrv_create_file(filename, opts, errp);
|
ret = bdrv_create_file(filename, opts, errp);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
return ret;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
bs = bdrv_open(filename, NULL, NULL,
|
bs = bdrv_open(filename, NULL, NULL,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue