[fix] Don't leak the trie if the number of nodes can't be read from a file

This commit is contained in:
Federico Mena Quintero
2016-02-25 11:38:28 -06:00
parent e60ad47677
commit 10c6768b5b

View File

@@ -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;