From 90a826226ff7118aaad768e700ce264cfddaa051 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 6 Apr 2005 12:27:43 +0200 Subject: 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 --- sql/ha_ndbcluster.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sql/ha_ndbcluster.cc') diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index e3f6235c62c..0668c3db7a8 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -5803,6 +5803,7 @@ extern "C" pthread_handler_decl(ndb_util_thread_func, { thd->cleanup(); delete thd; + delete ndb; DBUG_RETURN(NULL); } @@ -5921,6 +5922,7 @@ extern "C" pthread_handler_decl(ndb_util_thread_func, thd->cleanup(); delete thd; + delete ndb; DBUG_PRINT("exit", ("ndb_util_thread")); my_thread_end(); pthread_exit(0); -- cgit v1.2.1