Commit 5a426d03 authored by unknown's avatar unknown
Browse files

Add call to 'thd::clean_up' before deleting THD

parent ab1c0baa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4015,8 +4015,8 @@ pthread_handler_t ndb_binlog_thread_func(void *arg)

  hash_free(&ndb_schema_objects);

  // Placed here to avoid a memory leak; TODO: check if needed
  net_end(&thd->net);
  thd->cleanup();
  delete thd;

  ndb_binlog_thread_running= -1;