[glib] Plug a mem leak in network-address test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Plug a mem leak in network-address test
- Date: Fri, 3 Sep 2010 20:19:53 +0000 (UTC)
commit bd2faedefdbbfa0cbe5c0ee2b3e50eed91617990
Author: Christian Persch <chpe gnome org>
Date: Fri Sep 3 16:01:10 2010 -0400
Plug a mem leak in network-address test
==4616== 46 (32 direct, 14 indirect) bytes in 1 blocks are definitely lost in loss record 193 of 305
==4616== at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==4616== by 0x4057094: g_malloc (gmem.c:134)
==4616== by 0x406F2D6: g_slice_alloc (gslice.c:836)
==4616== by 0x406F31B: g_slice_alloc0 (gslice.c:848)
==4616== by 0x413D5BB: g_type_create_instance (gtype.c:1867)
==4616== by 0x412372A: g_object_constructor (gobject.c:1482)
==4616== by 0x4123147: g_object_newv (gobject.c:1347)
==4616== by 0x41236BB: g_object_new_valist (gobject.c:1463)
==4616== by 0x4122BB4: g_object_new (gobject.c:1181)
==4616== by 0x41B2D0F: g_network_address_new (gnetworkaddress.c:262)
==4616== by 0x8048A70: test_basic (network-address.c:10)
Bug #628331.
gio/tests/network-address.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/network-address.c b/gio/tests/network-address.c
index e8cf513..aabb8ef 100644
--- a/gio/tests/network-address.c
+++ b/gio/tests/network-address.c
@@ -16,6 +16,8 @@ test_basic (void)
g_assert_cmpstr (hostname, ==, "www.gnome.org");
g_assert_cmpint (port, ==, 8080);
g_free (hostname);
+
+ g_object_unref (address);
}
typedef struct _ParseTest ParseTest;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]