diff options
author | Markus Armbruster <armbru@redhat.com> | 2014-05-28 11:16:57 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-05-30 14:26:54 +0200 |
commit | b20e61e0d52eef57cf5db55087b16e0b5207e730 (patch) | |
tree | 103f9b7d186e59467155af51a259c199bba72594 /block.c | |
parent | a1904e48c4a9fb114d155419700bfb7d760273b9 (diff) |
block: Plug memory leak on brv_open_image() error path
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>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1228,6 +1228,7 @@ int bdrv_open_image(BlockDriverState **pbs, const char *filename, bdref_key); ret = -EINVAL; } + QDECREF(image_options); goto done; } |