From efc94d38733ac94c04f3c2d01d2eb058b5e3d4d5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 29 Oct 2015 04:21:25 +0000 Subject: Fix test suite memory leaks git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5796 a436a847-0d15-0410-975c-d299462d15a1 --- test/missing_port_name.lv2/test_missing_port_name.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/missing_port_name.lv2') diff --git a/test/missing_port_name.lv2/test_missing_port_name.c b/test/missing_port_name.lv2/test_missing_port_name.c index 0f96918..c000247 100644 --- a/test/missing_port_name.lv2/test_missing_port_name.c +++ b/test/missing_port_name.lv2/test_missing_port_name.c @@ -28,6 +28,7 @@ main(int argc, char** argv) lilv_world_load_bundle(world, bundle_uri); free(abs_bundle); serd_node_free(&bundle); + lilv_node_free(bundle_uri); LilvNode* plugin_uri = lilv_new_uri(world, PLUGIN_URI); const LilvPlugins* plugins = lilv_world_get_all_plugins(world); @@ -38,7 +39,9 @@ main(int argc, char** argv) TEST_ASSERT(port); LilvNode* name = lilv_port_get_name(plugin, port); TEST_ASSERT(!name); + lilv_node_free(name); + lilv_node_free(plugin_uri); lilv_world_free(world); return 0; -- cgit v1.2.1