summaryrefslogtreecommitdiff
path: root/tests/xmlrpc-test.c
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2020-02-28 12:54:59 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2020-02-28 12:55:12 +0900
commitb74c5fd5483969d55625576448662edf864b6b9e (patch)
treee3cd0fca2b0804eb86ec06c49c5495444a86f98d /tests/xmlrpc-test.c
parent58894334cd3f0b89c865304e8e9d6eea3cd20a55 (diff)
downloadlibsoup-b74c5fd5483969d55625576448662edf864b6b9e.tar.gz
libsoup-b74c5fd5483969d55625576448662edf864b6b9e.tar.bz2
libsoup-b74c5fd5483969d55625576448662edf864b6b9e.zip
Imported Upstream version 2.69.90upstream/2.69.90upstream/2.69.0
Change-Id: I484cce89dab3187f91ab6e005e265514a03028bd
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);
}