diff options
author | Ravi Sankar Guntur <ravi.g@samsung.com> | 2012-02-04 23:42:41 +0530 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-02-08 09:23:54 -0500 |
commit | bd79c00537756ca24423e51f11cae008111ab7d2 (patch) | |
tree | 4fbe51ba411a78bb39a4f6214b97d56805d678c7 | |
parent | 46affb0cd8befd5c6c13583570434648ee1e1f13 (diff) | |
download | glib-bd79c00537756ca24423e51f11cae008111ab7d2.tar.gz |
glib/tests: fix memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=669372
Signed-off-by: Ravi Sankar Guntur <ravi.g@samsung.com>
-rw-r--r-- | glib/tests/gdatetime.c | 1 | ||||
-rw-r--r-- | glib/tests/hash.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/glib/tests/gdatetime.c b/glib/tests/gdatetime.c index 618e174d0..516c4fcb6 100644 --- a/glib/tests/gdatetime.c +++ b/glib/tests/gdatetime.c @@ -881,6 +881,7 @@ test_non_utf8_printf (void) if (strstr (setlocale (LC_ALL, NULL), "ja_JP") == NULL) { g_test_message ("locale ja_JP.eucjp not available, skipping non-UTF8 tests"); + g_free (oldlocale); return; } diff --git a/glib/tests/hash.c b/glib/tests/hash.c index 492e89fc8..290dc9c1f 100644 --- a/glib/tests/hash.c +++ b/glib/tests/hash.c @@ -942,6 +942,7 @@ test_destroy_modify (void) FakeFreeData *ffd = g_ptr_array_index (fake_free_data, i); g_assert (ffd->freed); + g_free (ffd->string); g_free (ffd); } |