]> Git Repo - qemu.git/commitdiff
posix-aio-compat: Plug memory leak on paio_init() error path
authorMarkus Armbruster <[email protected]>
Fri, 11 Nov 2011 09:40:08 +0000 (10:40 +0100)
committerAnthony Liguori <[email protected]>
Fri, 11 Nov 2011 18:49:52 +0000 (12:49 -0600)
Spotted by Coverity.

Signed-off-by: Markus Armbruster <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
posix-aio-compat.c

index d3c1174ebf4482974124dc925631629d52d401f3..0c0035cb18b21a6ab8070fb0b3608f1a26e8eb22 100644 (file)
@@ -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;
     }
 
This page took 0.027814 seconds and 4 git commands to generate.