Commit 90a82622 authored by unknown's avatar unknown

BUG#9626 Several serious errors reported by Valgrind in latest 5.0 bk tree

 - Fixing obvious ones


sql/ha_ndbcluster.cc:
  Delete ndb object before exiting thread
parent 566460ac
...@@ -5803,6 +5803,7 @@ extern "C" pthread_handler_decl(ndb_util_thread_func, ...@@ -5803,6 +5803,7 @@ extern "C" pthread_handler_decl(ndb_util_thread_func,
{ {
thd->cleanup(); thd->cleanup();
delete thd; delete thd;
delete ndb;
DBUG_RETURN(NULL); DBUG_RETURN(NULL);
} }
...@@ -5921,6 +5922,7 @@ extern "C" pthread_handler_decl(ndb_util_thread_func, ...@@ -5921,6 +5922,7 @@ extern "C" pthread_handler_decl(ndb_util_thread_func,
thd->cleanup(); thd->cleanup();
delete thd; delete thd;
delete ndb;
DBUG_PRINT("exit", ("ndb_util_thread")); DBUG_PRINT("exit", ("ndb_util_thread"));
my_thread_end(); my_thread_end();
pthread_exit(0); pthread_exit(0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment