From e4d3f6140cc167580ec43de6fc3ea4562aaba63e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 18 Jan 2012 18:14:18 +0000 Subject: Fix memory leaks. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3966 a436a847-0d15-0410-975c-d299462d15a1 --- test/test_plugin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/test_plugin.c') diff --git a/test/test_plugin.c b/test/test_plugin.c index 55df26c..ef66863 100644 --- a/test/test_plugin.c +++ b/test/test_plugin.c @@ -58,6 +58,8 @@ cleanup(LV2_Handle instance) if (test->rec_file) { fclose(test->rec_file); } + free(test->tmp_file_path); + free(test->rec_file_path); free(instance); } @@ -124,7 +126,6 @@ instantiate(const LV2_Descriptor* descriptor, fprintf(stderr, "ERROR: Failed to open rec file\n"); } fprintf(test->rec_file, "instantiate\n"); - } return (LV2_Handle)test; @@ -300,6 +301,8 @@ restore(LV2_Handle instance, fprintf(stderr, "ERROR: Restored bad path `%s' != `%s'\n", real_path, plugin->tmp_file_path); } + free(real_path); + free(path); } } -- cgit v1.2.1