mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
Really fix the leak
Pointed out by Josselin Mouette.
This commit is contained in:
parent
7f325939ba
commit
ec82f61065
@ -325,7 +325,6 @@ end_element (GMarkupParseContext *context,
|
|||||||
G_SPAWN_STDOUT_TO_DEV_NULL,
|
G_SPAWN_STDOUT_TO_DEV_NULL,
|
||||||
NULL, NULL, NULL, &stderr_child, &status, &my_error))
|
NULL, NULL, NULL, &stderr_child, &status, &my_error))
|
||||||
{
|
{
|
||||||
g_free (stderr_child);
|
|
||||||
g_propagate_error (error, my_error);
|
g_propagate_error (error, my_error);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
@ -339,6 +338,7 @@ end_element (GMarkupParseContext *context,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_free (stderr_child);
|
||||||
g_free (real_file);
|
g_free (real_file);
|
||||||
real_file = g_strdup (tmp_file);
|
real_file = g_strdup (tmp_file);
|
||||||
}
|
}
|
||||||
@ -383,7 +383,6 @@ end_element (GMarkupParseContext *context,
|
|||||||
NULL, NULL, NULL, &stderr_child, &status, &my_error))
|
NULL, NULL, NULL, &stderr_child, &status, &my_error))
|
||||||
{
|
{
|
||||||
g_propagate_error (error, my_error);
|
g_propagate_error (error, my_error);
|
||||||
g_free (stderr_child);
|
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -395,6 +394,7 @@ end_element (GMarkupParseContext *context,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_free (stderr_child);
|
||||||
g_free (real_file);
|
g_free (real_file);
|
||||||
real_file = g_strdup (tmp_file2);
|
real_file = g_strdup (tmp_file2);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user