mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-01 04:45:37 +00:00
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@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
27df2afe34
commit
30f5ab5357
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user