summaryrefslogtreecommitdiffstats
path: root/tests/basic_tests.c
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-04-30 14:58:16 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-04-30 14:58:16 +0000
commit7e6dfb76834f4ed5ebe574572559004e95d2bdea (patch)
tree7c171177e47a5ac70addd5f00ad550ef5e1db65b /tests/basic_tests.c
parente863eefdeb0fcd692958d33c860baa53bda2f202 (diff)
downloadlasso-7e6dfb76834f4ed5ebe574572559004e95d2bdea.tar.gz
lasso-7e6dfb76834f4ed5ebe574572559004e95d2bdea.tar.xz
lasso-7e6dfb76834f4ed5ebe574572559004e95d2bdea.zip
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.
Diffstat (limited to 'tests/basic_tests.c')
-rw-r--r--tests/basic_tests.c1
1 files changed, 1 insertions, 0 deletions
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