diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-11-11 10:40:08 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-11-11 12:49:52 -0600 |
commit | 095ed5be7b61b7168020f0b807c9789b277a3956 (patch) | |
tree | 180666e7fb17469af0109c2390de1f224f50b7a7 /posix-aio-compat.c | |
parent | 9d9474726274d0e1c420f055849a0e3058cad0e4 (diff) | |
download | qemu-095ed5be7b61b7168020f0b807c9789b277a3956.zip qemu-095ed5be7b61b7168020f0b807c9789b277a3956.tar.gz qemu-095ed5be7b61b7168020f0b807c9789b277a3956.tar.bz2 |
posix-aio-compat: Plug memory leak on paio_init() error path
Spotted by Coverity.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'posix-aio-compat.c')
-rw-r--r-- | posix-aio-compat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/posix-aio-compat.c b/posix-aio-compat.c index d3c1174..0c0035c 100644 --- 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; } |