aboutsummaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2014-05-28 11:16:57 +0200
committerKevin Wolf <kwolf@redhat.com>2014-05-30 14:26:54 +0200
commitb20e61e0d52eef57cf5db55087b16e0b5207e730 (patch)
tree103f9b7d186e59467155af51a259c199bba72594 /block.c
parenta1904e48c4a9fb114d155419700bfb7d760273b9 (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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block.c b/block.c
index a517d72d71..310ea89fce 100644
--- a/block.c
+++ b/block.c
@@ -1228,6 +1228,7 @@ int bdrv_open_image(BlockDriverState **pbs, const char *filename,
bdref_key);
ret = -EINVAL;
}
+ QDECREF(image_options);
goto done;
}