summaryrefslogtreecommitdiff
path: root/unit/test-gobex-transfer.c
diff options
context:
space:
mode:
authorAnderson Lizardo <anderson.lizardo@openbossa.org>2014-02-11 14:16:31 -0400
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-02-12 11:49:31 +0200
commit8e2a1c26b59b4d67615afc7d5ca3dc6403d445e5 (patch)
treeecf09509edf2bc596fd98d5f76f4bcde18f7f697 /unit/test-gobex-transfer.c
parent124f6f05956e95f797eff5fc24e069e2f0b54789 (diff)
downloadbluez-8e2a1c26b59b4d67615afc7d5ca3dc6403d445e5.tar.gz
unit: Fix memory leaks in gobex tests
Diffstat (limited to 'unit/test-gobex-transfer.c')
-rw-r--r--unit/test-gobex-transfer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unit/test-gobex-transfer.c b/unit/test-gobex-transfer.c
index 128a4673e..7c9fd43df 100644
--- a/unit/test-gobex-transfer.c
+++ b/unit/test-gobex-transfer.c
@@ -511,6 +511,7 @@ static void test_stream_put_req_abort(void)
g_obex_unref(obex);
g_assert_error(d.err, G_OBEX_ERROR, G_OBEX_ERROR_CANCELLED);
+ g_error_free(d.err);
}
static void test_stream_put_rsp_abort(void)
@@ -556,6 +557,7 @@ static void test_stream_put_rsp_abort(void)
g_obex_unref(obex);
g_assert_error(d.err, G_OBEX_ERROR, G_OBEX_ERROR_CANCELLED);
+ g_error_free(d.err);
}
static void handle_put_seq_wait(GObex *obex, GObexPacket *req,