[PATCH spice-server] red-record-qxl: Remove potential leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]