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.
This commit is contained in:
Gregory Oschwald
2018-01-02 10:38:12 -08:00
parent 999de2bf6a
commit 95ea873498

View File

@@ -49,6 +49,8 @@ TEST test_trie(void) {
ASSERT(phrase.start == 2); ASSERT(phrase.start == 2);
ASSERT(phrase.len == 1); ASSERT(phrase.len == 1);
phrase_array_destroy(phrases);
token_array_destroy(tokens);
trie_destroy(trie); trie_destroy(trie);
PASS(); PASS();