MDEV-9987 - gen_lex_hash leaks memory, making LeakSanitizer builds fail

Fixed memory leaks in gen_lex_hash.
This commit is contained in:
Sergey Vojtovich 2016-04-26 16:15:15 +04:00
parent 29868de2ff
commit 4f1ad43992

View file

@ -310,6 +310,7 @@ void print_find_structs()
add_structs_to_map(root_by_len,max_len);
set_links(root_by_len,max_len);
print_hash_map("sql_functions_map");
free(hash_map);
hash_map= 0;
size_hash_map= 0;
@ -319,6 +320,7 @@ void print_find_structs()
add_structs_to_map(root_by_len2,max_len2);
set_links(root_by_len2,max_len2);
print_hash_map("symbols_map");
free(hash_map);
}