aboutsummaryrefslogtreecommitdiff
path: root/tests/test-io-task.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-io-task.c')
-rw-r--r--tests/test-io-task.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-io-task.c b/tests/test-io-task.c
index ff62272d5f..141aa2c55d 100644
--- a/tests/test-io-task.c
+++ b/tests/test-io-task.c
@@ -127,7 +127,7 @@ static void test_task_failure(void)
g_assert(data.source == obj);
g_assert(data.err == err);
g_assert(data.freed == false);
-
+ error_free(data.err);
}
@@ -238,6 +238,8 @@ static void test_task_thread_failure(void)
g_assert(data.source == obj);
g_assert(data.err != NULL);
+ error_free(data.err);
+
self = g_thread_self();
/* Make sure the test_task_thread_worker actually got