From 7e6dfb76834f4ed5ebe574572559004e95d2bdea Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 30 Apr 2009 14:58:16 +0000 Subject: Fix leaks in tests * basic_tests.c: * login_tests.c: * login_tests_saml2.c: * random_tests.c: free replaced string, unref used nodes, initialize local variables when necessary, free newly allocated strings. --- tests/basic_tests.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/basic_tests.c') diff --git a/tests/basic_tests.c b/tests/basic_tests.c index 56b91ad3..4503d258 100644 --- a/tests/basic_tests.c +++ b/tests/basic_tests.c @@ -166,6 +166,7 @@ START_TEST(test09_test_deserialization) node = lasso_node_new_from_dump(content); fail_unless(node != NULL, "node should be parsed"); g_object_unref(node); + g_free(content); } END_TEST -- cgit