From 95ea873498823785eef964bfc9db452188b454dd Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Tue, 2 Jan 2018 10:38:12 -0800 Subject: [PATCH] Fix memory leaks in test_trie The primary motivation is to make the test suite run clean under Valgrind so that we don't need to wade through unimportant failures. --- test/test_trie.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_trie.c b/test/test_trie.c index 457e7222..d3adaf97 100644 --- a/test/test_trie.c +++ b/test/test_trie.c @@ -49,6 +49,8 @@ TEST test_trie(void) { ASSERT(phrase.start == 2); ASSERT(phrase.len == 1); + phrase_array_destroy(phrases); + token_array_destroy(tokens); trie_destroy(trie); PASS();