summaryrefslogtreecommitdiff
path: root/sql/gen_lex_hash.cc
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2016-04-26 16:15:15 +0400
committerSergey Vojtovich <svoj@mariadb.org>2016-04-26 16:15:15 +0400
commit4f1ad43992d75676687f29da96dd7c4147247a8f (patch)
tree73a025eb5395b80f068654db3f6afee134375653 /sql/gen_lex_hash.cc
parent29868de2fff62c3ebd8af5cf533d3d224da1b332 (diff)
downloadmariadb-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.cc2
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);
}