From 0389fb6ee1f05177f5cfd4cb260885cf0ced6722 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 8 Oct 2015 20:46:35 +0000 Subject: Fix memory leaks in test suite git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5753 a436a847-0d15-0410-975c-d299462d15a1 --- test/lilv_test.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/lilv_test.c b/test/lilv_test.c index 3e2a23a..c82fd79 100644 --- a/test/lilv_test.c +++ b/test/lilv_test.c @@ -608,6 +608,7 @@ test_plugin(void) LilvNode* unknown_uri_val = lilv_new_uri(world, "http://example.org/unknown"); TEST_ASSERT(!lilv_nodes_contains(data_uris, unknown_uri_val)); + lilv_node_free(unknown_uri_val); free(manifest_uri); free(data_uri); @@ -1389,6 +1390,7 @@ test_ui(void) TEST_ASSERT(lilv_node_equals(expected_uri, ui_binary_uri)); free(ui_binary_uri_str); + lilv_node_free(unknown_ui_class_uri); lilv_node_free(ui_class_uri); lilv_node_free(ui_uri); lilv_node_free(ui2_uri); @@ -1918,6 +1920,9 @@ test_world(void) matches = lilv_world_find_nodes(world, NULL, uri, NULL); TEST_ASSERT(!matches); + lilv_node_free(uri); + lilv_node_free(num); + lilv_world_unload_bundle(world, NULL); return 1; -- cgit v1.2.1