summaryrefslogtreecommitdiffstats
path: root/tests/sratom_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-02 05:19:21 +0000
committerDavid Robillard <d@drobilla.net>2012-03-02 05:19:21 +0000
commit8c8e3e1e306cb936be63cc033d8db2ca4442cbe5 (patch)
tree1a2a081f6041f8352e012819e3d26291b102b92c /tests/sratom_test.c
parent8e241b6b299f3edc2d3e73b4b3a9e4235a949e33 (diff)
downloadsratom-8c8e3e1e306cb936be63cc033d8db2ca4442cbe5.tar.gz
sratom-8c8e3e1e306cb936be63cc033d8db2ca4442cbe5.tar.bz2
sratom-8c8e3e1e306cb936be63cc033d8db2ca4442cbe5.zip
Fix memory leaks.
git-svn-id: http://svn.drobilla.net/lad/trunk/sratom@4010 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'tests/sratom_test.c')
-rw-r--r--tests/sratom_test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/sratom_test.c b/tests/sratom_test.c
index 4ae3f9a..29ead8f 100644
--- a/tests/sratom_test.c
+++ b/tests/sratom_test.c
@@ -226,10 +226,15 @@ main()
}
printf("All tests passed.\n");
+
+ free(parsed);
+ free(instr);
+ free(outstr);
sratom_free(sratom);
for (uint32_t i = 0; i < n_uris; ++i) {
free(uris[i]);
}
free(uris);
+
return 0;
}