Commit 90a82622 authored by unknown's avatar unknown
Browse files

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);