diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2016-04-26 16:15:15 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2016-04-26 16:15:15 +0400 |
commit | 4f1ad43992d75676687f29da96dd7c4147247a8f (patch) | |
tree | 73a025eb5395b80f068654db3f6afee134375653 /sql/gen_lex_hash.cc | |
parent | 29868de2fff62c3ebd8af5cf533d3d224da1b332 (diff) | |
download | mariadb-git-4f1ad43992d75676687f29da96dd7c4147247a8f.tar.gz |
MDEV-9987 - gen_lex_hash leaks memory, making LeakSanitizer builds fail
Fixed memory leaks in gen_lex_hash.
Diffstat (limited to 'sql/gen_lex_hash.cc')
-rw-r--r-- | sql/gen_lex_hash.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/gen_lex_hash.cc b/sql/gen_lex_hash.cc index c37f4f145cf..3a3273d279b 100644 --- a/sql/gen_lex_hash.cc +++ b/sql/gen_lex_hash.cc @@ -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); } |