[glib] gdbus: Fix leak in g_dbus_message_print()
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gdbus: Fix leak in g_dbus_message_print()
- Date: Tue, 22 Nov 2016 20:01:43 +0000 (UTC)
commit a4012abbdf2c6c095ae34a97dca760b2446436aa
Author: Christophe Fergeau <cfergeau redhat com>
Date: Wed Sep 17 17:00:03 2014 +0200
gdbus: Fix leak in g_dbus_message_print()
This leak only happens when using G_DBUS_DEBUG=message or similar, but
it's nicer to be valgrind-clean even in these cases.
https://bugzilla.gnome.org/show_bug.cgi?id=736810
gio/gdbusmessage.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gdbusmessage.c b/gio/gdbusmessage.c
index c6c557f..6b3ca77 100644
--- a/gio/gdbusmessage.c
+++ b/gio/gdbusmessage.c
@@ -3444,6 +3444,7 @@ g_dbus_message_print (GDBusMessage *message,
{
g_string_append_printf (str, "%*s (none)\n", indent, "");
}
+ g_list_free (keys);
g_string_append_printf (str, "%*sBody: ", indent, "");
if (message->body != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]