summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <msvensson@pilot.mysql.com>2006-12-21 16:43:11 +0100
committerunknown <msvensson@pilot.mysql.com>2006-12-21 16:43:11 +0100
commit5a426d03d76776c1961090112c5db770a177da95 (patch)
tree634f15d8fbd457abd3635030db6e956705a85c88
parentab1c0baae7f17d4bd46eb0fe9ce5cea231c2f66e (diff)
downloadmariadb-git-5a426d03d76776c1961090112c5db770a177da95.tar.gz
Add call to 'thd::clean_up' before deleting THD
-rw-r--r--sql/ha_ndbcluster_binlog.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_ndbcluster_binlog.cc b/sql/ha_ndbcluster_binlog.cc
index 6b56e0d758e..731c0d97cfe 100644
--- a/sql/ha_ndbcluster_binlog.cc
+++ b/sql/ha_ndbcluster_binlog.cc
@@ -4015,8 +4015,8 @@ err:
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;