diff options
author | Stef Walter <stefw@gnome.org> | 2013-11-09 20:29:56 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-11-11 08:10:51 +0100 |
commit | 9e0ade0691b30baf07bab7d5b4b00467b82c21b9 (patch) | |
tree | 69e57087c05aacc83fadfb5084414213c47b3da1 /tests | |
parent | dce83add1800c7145d6375626e2129fc51a83267 (diff) |
file-test: Fix leaks in test
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Diffstat (limited to 'tests')
-rw-r--r-- | 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 62f712c11..ba667b02f 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); |