diff options
Diffstat (limited to 'src/utils/trie.c')
-rw-r--r-- | src/utils/trie.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/trie.c b/src/utils/trie.c index f447860..b92573f 100644 --- a/src/utils/trie.c +++ b/src/utils/trie.c @@ -38,6 +38,8 @@ b_trie_free_node(b_trie_t *trie, b_trie_node_t *node) void b_trie_free(b_trie_t *trie) { + if (trie == NULL) + return; b_trie_free_node(trie, trie->root); free(trie); } |