summaryrefslogtreecommitdiff
path: root/tests/test-io-stream-pollable.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-io-stream-pollable.c')
-rw-r--r--tests/test-io-stream-pollable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-io-stream-pollable.c b/tests/test-io-stream-pollable.c
index 510145d..614a546 100644
--- a/tests/test-io-stream-pollable.c
+++ b/tests/test-io-stream-pollable.c
@@ -72,6 +72,7 @@ read_stream_cb (GObject *pollable_stream, gpointer _user_data)
if (len == -1) {
g_assert_error (error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK);
+ g_error_free (error);
return TRUE;
}