summaryrefslogtreecommitdiffstats
path: root/test/test_plugin.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-01-18 18:14:18 +0000
committerDavid Robillard <d@drobilla.net>2012-01-18 18:14:18 +0000
commite4d3f6140cc167580ec43de6fc3ea4562aaba63e (patch)
tree2ab0a6a529584a40ef7ed78c35aa5b1cb66fdba5 /test/test_plugin.c
parent32c2579e5a4aa32df26974f7f31063f9f499e906 (diff)
downloadlilv-e4d3f6140cc167580ec43de6fc3ea4562aaba63e.tar.gz
lilv-e4d3f6140cc167580ec43de6fc3ea4562aaba63e.tar.bz2
lilv-e4d3f6140cc167580ec43de6fc3ea4562aaba63e.zip
Fix memory leaks.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3966 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'test/test_plugin.c')
-rw-r--r--test/test_plugin.c5
1 files changed, 4 insertions, 1 deletions
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);
}
}