Commit 4f1ad439 authored by Sergey Vojtovich's avatar Sergey Vojtovich

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

Fixed memory leaks in gen_lex_hash.
parent 29868de2
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment