projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1904e4
)
block: Plug memory leak on brv_open_image() error path
author
Markus Armbruster
<armbru@redhat.com>
Wed, 28 May 2014 09:16:57 +0000
(11:16 +0200)
committer
Kevin Wolf
<kwolf@redhat.com>
Fri, 30 May 2014 12:26:54 +0000
(14:26 +0200)
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>
block.c
patch
|
blob
|
history
diff --git
a/block.c
b/block.c
index a517d72d7113cfb44750ed5c41d7659eb7f28fd3..310ea89fce621ca946f3f98813eb7ce2224fdf09 100644
(file)
--- 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;
}