[glib] Really fix the leak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Really fix the leak
- Date: Sun, 30 Sep 2012 23:24:24 +0000 (UTC)
commit ec82f610655f09bda21e9da1ce629762f72570df
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 30 19:24:13 2012 -0400
Really fix the leak
Pointed out by Josselin Mouette.
gio/glib-compile-resources.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/glib-compile-resources.c b/gio/glib-compile-resources.c
index c712010..ff97c67 100644
--- a/gio/glib-compile-resources.c
+++ b/gio/glib-compile-resources.c
@@ -325,7 +325,6 @@ end_element (GMarkupParseContext *context,
G_SPAWN_STDOUT_TO_DEV_NULL,
NULL, NULL, NULL, &stderr_child, &status, &my_error))
{
- g_free (stderr_child);
g_propagate_error (error, my_error);
goto cleanup;
}
@@ -339,6 +338,7 @@ end_element (GMarkupParseContext *context,
goto cleanup;
}
+ g_free (stderr_child);
g_free (real_file);
real_file = g_strdup (tmp_file);
}
@@ -383,7 +383,6 @@ end_element (GMarkupParseContext *context,
NULL, NULL, NULL, &stderr_child, &status, &my_error))
{
g_propagate_error (error, my_error);
- g_free (stderr_child);
goto cleanup;
}
@@ -395,6 +394,7 @@ end_element (GMarkupParseContext *context,
goto cleanup;
}
+ g_free (stderr_child);
g_free (real_file);
real_file = g_strdup (tmp_file2);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]