From 830abaaa01ce4f21324e65a42eaf28b70461f8e0 Mon Sep 17 00:00:00 2001 From: "SergeyV@selena." <> Date: Thu, 1 Dec 2005 23:43:37 +0300 Subject: Fixes bug #11892. 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. --- mysys/my_init.c | 1 + 1 file changed, 1 insertion(+) (limited to 'mysys') diff --git a/mysys/my_init.c b/mysys/my_init.c index f28f47e090e..c2bfdde0ddd 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) -- cgit v1.2.1