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

parent a498886d
...@@ -4015,8 +4015,8 @@ err: ...@@ -4015,8 +4015,8 @@ err:
hash_free(&ndb_schema_objects); hash_free(&ndb_schema_objects);
// Placed here to avoid a memory leak; TODO: check if needed
net_end(&thd->net); net_end(&thd->net);
thd->cleanup();
delete thd; delete thd;
ndb_binlog_thread_running= -1; ndb_binlog_thread_running= -1;
......
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