mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 22:16:16 +01:00
Plug a mem leak in data-output-stream test
==2426== 45,034 bytes in 4,094 blocks are definitely lost in loss record 358 of 361 ==2426== at 0x4005BDC: malloc (vg_replace_malloc.c:195) ==2426== by 0x4057094: g_malloc (gmem.c:134) ==2426== by 0x40573DB: g_malloc_n (gmem.c:281) ==2426== by 0x4071ABD: g_strconcat (gstrfuncs.c:315) ==2426== by 0x804916A: test_read_lines (data-output-stream.c:83) Bug #628331.
This commit is contained in:
parent
45331a4640
commit
05d6fcf88c
@ -85,6 +85,7 @@ test_read_lines (GDataStreamNewlineType newline_type)
|
||||
g_stpcpy ((char*)(lines + i*strlen(s)), s);
|
||||
g_assert_no_error (error);
|
||||
g_assert (res == TRUE);
|
||||
g_free (s);
|
||||
}
|
||||
|
||||
/* Byte order testing */
|
||||
|
Loading…
Reference in New Issue
Block a user