mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
g_system_thread_new: Free a memory leak on error path
This commit is contained in:
parent
bd779c96e9
commit
d129395fe2
@ -1331,6 +1331,7 @@ g_system_thread_new (GThreadFunc proxy,
|
|||||||
{
|
{
|
||||||
g_set_error (error, G_THREAD_ERROR, G_THREAD_ERROR_AGAIN,
|
g_set_error (error, G_THREAD_ERROR, G_THREAD_ERROR_AGAIN,
|
||||||
"Error creating thread: %s", g_strerror (ret));
|
"Error creating thread: %s", g_strerror (ret));
|
||||||
|
g_free (thread->thread.name);
|
||||||
g_slice_free (GThreadPosix, thread);
|
g_slice_free (GThreadPosix, thread);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user