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:
Frediano Ziglio 2018-06-24 11:20:52 +01:00
parent 27df2afe34
commit 30f5ab5357

View File

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