[glib/wip/gcleanup: 43/79] file-test: Fix leaks in test
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gcleanup: 43/79] file-test: Fix leaks in test
- Date: Sun, 10 Nov 2013 15:23:08 +0000 (UTC)
commit 078445d20133f6d3770d6ce932fa292fbaf5ec5e
Author: Stef Walter <stefw gnome org>
Date: Sat Nov 9 20:29:56 2013 +0100
file-test: Fix leaks in test
https://bugzilla.gnome.org/show_bug.cgi?id=711751
tests/file-test.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/tests/file-test.c b/tests/file-test.c
index 62f712c..ba667b0 100644
--- a/tests/file-test.c
+++ b/tests/file-test.c
@@ -184,12 +184,14 @@ test_readlink (void)
data = g_file_read_link (link3, &error);
g_assert (data == NULL && "could read link3");
g_assert_error (error, G_FILE_ERROR, G_FILE_ERROR_NOENT);
+ g_error_free (error);
error = NULL;
data = g_file_read_link (filename, &error);
g_assert (data == NULL && "could read regular file as link");
g_assert_error (error, G_FILE_ERROR, G_FILE_ERROR_INVAL);
-
+ g_error_free (error);
+
remove (filename);
remove (link1);
remove (link2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]