[glib] Plug a mem leak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Plug a mem leak
- Date: Mon, 30 Aug 2010 14:15:39 +0000 (UTC)
commit 6879256f360ed46c2238b273a239f99d08a62915
Author: Christian Persch <chpe gnome org>
Date: Mon Aug 30 10:14:39 2010 -0400
Plug a mem leak
==6793== 16 bytes in 1 blocks are definitely lost in loss record 632 of 1,423
==6793== at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==6793== by 0x4057094: g_malloc (gmem.c:134)
==6793== by 0x417FC29: g_data_input_stream_read_line (gdatainputstream.c:797)
==6793== by 0x41F99C1: _my_g_data_input_stream_read_line (gdbusauth.c:279)
==6793== by 0x41FA728: _g_dbus_auth_run_client (gdbusauth.c:759)
Bug #628327.
gio/gdbusauth.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gdbusauth.c b/gio/gdbusauth.c
index 7f19ace..ba5facf 100644
--- a/gio/gdbusauth.c
+++ b/gio/gdbusauth.c
@@ -762,6 +762,7 @@ _g_dbus_auth_run_client (GDBusAuth *auth,
debug_print ("CLIENT: WaitingForAgreeUnixFD, read=`%s'", line);
if (g_strcmp0 (line, "AGREE_UNIX_FD") == 0)
{
+ g_free (line);
negotiated_capabilities |= G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING;
s = "BEGIN\r\n";
debug_print ("CLIENT: writing `%s'", s);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]