[Spice-devel] [PATCH spice-server] red-record-qxl: Remove potential leak
Frediano Ziglio
fziglio at redhat.com
Mon Jun 25 10:46:22 UTC 2018
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>
---
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
More information about the Spice-devel
mailing list