Skip to content

Commit

Permalink
block: Plug memory leak on brv_open_image() error path
Browse files Browse the repository at this point in the history
Introduced in commit da557a.  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>
  • Loading branch information
Markus Armbruster authored and kevmw committed May 30, 2014
1 parent a1904e4 commit b20e61e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions block.c
Expand Up @@ -1228,6 +1228,7 @@ int bdrv_open_image(BlockDriverState **pbs, const char *filename,
bdref_key);
ret = -EINVAL;
}
QDECREF(image_options);
goto done;
}

Expand Down

0 comments on commit b20e61e

Please sign in to comment.