mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
glib/win32: fix potential leak on spawn error
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> (cherry-picked from commit 982b074fa97bcabc5e7624ac883b035a403f401e)
This commit is contained in:
parent
491059294e
commit
091e409dee
@ -903,7 +903,8 @@ fork_exec (gint *exit_status,
|
||||
0, TRUE, DUPLICATE_SAME_ACCESS))
|
||||
{
|
||||
char *emsg = g_win32_error_message (GetLastError ());
|
||||
g_print("%s\n", emsg);
|
||||
g_print ("%s\n", emsg);
|
||||
g_free (emsg);
|
||||
*child_pid = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user