diff options
author | unknown <SergeyV@selena.> | 2005-12-01 23:17:00 +0300 |
---|---|---|
committer | unknown <SergeyV@selena.> | 2005-12-01 23:17:00 +0300 |
commit | 601cfeab34f4415b3295f78a60ac94e4afc7a6a8 (patch) | |
tree | 0b239b88485085e166c4dccb1c62717b786d9141 /mysys | |
parent | a050707b61d29dec3f39ef89f3102c6a72edb90a (diff) | |
download | mariadb-git-601cfeab34f4415b3295f78a60ac94e4afc7a6a8.tar.gz |
Fixes bug #6536. When MyODBC or any other client do my_init()/my_end()
several times, it was causing corruption of charset data stored in once_mem_pool.
my_end() deallocated once_mem pool, but did not put a flag that charsets have
to be reloaded. The fix addresses this problem.
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mysys/my_init.c b/mysys/my_init.c index 3e5130ec670..d68c76bef1b 100644 --- a/mysys/my_init.c +++ b/mysys/my_init.c @@ -152,6 +152,7 @@ void my_end(int infoflag) DBUG_PRINT("error",("%s",errbuff[0])); } } + free_charsets(); my_once_free(); if ((infoflag & MY_GIVE_INFO) || print_info) |