summaryrefslogtreecommitdiff
path: root/tests/xmlrpc-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/xmlrpc-test.c')
-rw-r--r--tests/xmlrpc-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/xmlrpc-test.c b/tests/xmlrpc-test.c
index 58d96abc..8b1f9dab 100644
--- a/tests/xmlrpc-test.c
+++ b/tests/xmlrpc-test.c
@@ -473,6 +473,7 @@ verify_serialization_fail (GVariant *value)
body = soup_xmlrpc_build_request ("MyMethod", value, &error);
g_assert (body == NULL);
g_assert (error != NULL);
+ g_clear_error (&error);
}
static void
@@ -565,6 +566,7 @@ verify_deserialization (GVariant *expected_variant,
soup_xmlrpc_params_free (out_params);
g_variant_unref (variant);
+ g_variant_unref (expected_variant);
g_free (method_name);
g_free (body);
}
@@ -591,6 +593,8 @@ verify_deserialization_fail (const char *signature,
g_assert (variant == NULL);
g_free (body);
+ g_free (method_name);
+ g_clear_error (&error);
soup_xmlrpc_params_free (out_params);
}