projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d94747
)
posix-aio-compat: Plug memory leak on paio_init() error path
author
Markus Armbruster
<armbru@redhat.com>
Fri, 11 Nov 2011 09:40:08 +0000
(10:40 +0100)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Fri, 11 Nov 2011 18:49:52 +0000
(12:49 -0600)
Spotted by Coverity.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
posix-aio-compat.c
patch
|
blob
|
history
diff --git
a/posix-aio-compat.c
b/posix-aio-compat.c
index d3c1174ebf4482974124dc925631629d52d401f3..0c0035cb18b21a6ab8070fb0b3608f1a26e8eb22 100644
(file)
--- a/
posix-aio-compat.c
+++ b/
posix-aio-compat.c
@@
-667,6
+667,7
@@
int paio_init(void)
s->first_aio = NULL;
if (qemu_pipe(fds) == -1) {
fprintf(stderr, "failed to create pipe\n");
+ g_free(s);
return -1;
}