Plug a huge mem leak in data-output-stream test
authorChristian Persch <chpe@gnome.org>
Fri, 3 Sep 2010 19:55:10 +0000 (15:55 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 3 Sep 2010 19:55:10 +0000 (15:55 -0400)
==12763== 16,777,215 bytes in 1 blocks are possibly lost in loss record 357 of 357
==12763==    at 0x4004F1B: calloc (vg_replace_malloc.c:418)
==12763==    by 0x405711D: g_malloc0 (gmem.c:157)
==12763==    by 0x8048ED6: test_basic (data-output-stream.c:40)

Bug #628331.

gio/tests/data-output-stream.c

index 887f461..a97201e 100644 (file)
@@ -50,6 +50,7 @@ test_basic (void)
 
   g_object_unref (stream);
   g_object_unref (base_stream);
+  g_free (data);
 }
 
 static void