[Spice-commits] server/red-record-qxl.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 26 10:17:55 UTC 2018


 server/red-record-qxl.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 30f5ab535729231c3a5456511c45e41ddae1ddef
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Sun Jun 24 11:20:52 2018 +0100

    red-record-qxl: Remove potential leak
    
    On some systems you need to call g_spawn_close_pid after
    spawning a process to avoid leaks (currently Windows).
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Christophe Fergeau <cfergeau at redhat.com>

diff --git a/server/red-record-qxl.c b/server/red-record-qxl.c
index 0065fc45..974963b0 100644
--- a/server/red-record-qxl.c
+++ b/server/red-record-qxl.c
@@ -905,6 +905,7 @@ RedRecord *red_record_new(const char *filename)
             continue;
         }
         close(fd_in);
+        g_spawn_close_pid(child_pid);
     }
 
     if (fwrite(header, sizeof(header)-1, 1, f) != 1) {


More information about the Spice-commits mailing list