From 10c6768b5b5d28672a3c7be7716fd09c764b20e0 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Thu, 25 Feb 2016 11:38:28 -0600 Subject: [PATCH] [fix] Don't leak the trie if the number of nodes can't be read from a file --- src/trie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trie.c b/src/trie.c index a1fbaf70..a2bb15ef 100644 --- a/src/trie.c +++ b/src/trie.c @@ -1016,7 +1016,7 @@ trie_t *trie_read(FILE *file) { uint32_t num_keys; if (!file_read_uint32(file, &num_keys)) { - goto exit_file_read; + goto exit_trie_created; } trie->num_keys = num_keys;