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 <[email protected]>
---
 server/red-record-qxl.c | 1 +
 1 file changed, 1 insertion(+)

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) {
-- 
2.17.1

_______________________________________________
Spice-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to