mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 17:33:44 +01:00
MDEV-9987 - gen_lex_hash leaks memory, making LeakSanitizer builds fail
Fixed memory leaks in gen_lex_hash.
This commit is contained in:
parent
29868de2ff
commit
4f1ad43992
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue