diff options
author | unknown <tomas@whalegate.ndb.mysql.com> | 2007-12-11 19:51:44 +0100 |
---|---|---|
committer | unknown <tomas@whalegate.ndb.mysql.com> | 2007-12-11 19:51:44 +0100 |
commit | 841600c05f768efa8464dc2eff3eeb6271bcb73d (patch) | |
tree | 2872e7b1d458d898932f97e1b80067a4783a4c7c /sql/ha_ndbcluster_binlog.cc | |
parent | aadf1f1ce3cdb25f5a32021424e10cf250d35cbb (diff) | |
download | mariadb-git-841600c05f768efa8464dc2eff3eeb6271bcb73d.tar.gz |
remove memleak cased by dynamic variables being lost
Diffstat (limited to 'sql/ha_ndbcluster_binlog.cc')
-rw-r--r-- | sql/ha_ndbcluster_binlog.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/ha_ndbcluster_binlog.cc b/sql/ha_ndbcluster_binlog.cc index 990c00261a8..d015750ee44 100644 --- a/sql/ha_ndbcluster_binlog.cc +++ b/sql/ha_ndbcluster_binlog.cc @@ -243,7 +243,7 @@ static void run_query(THD *thd, char *buf, char *end, { ulong save_thd_query_length= thd->query_length; char *save_thd_query= thd->query; - struct system_variables save_thd_variables= thd->variables; + ulong save_thread_id= thd->variables.pseudo_thread_id; struct system_status_var save_thd_status_var= thd->status_var; THD_TRANS save_thd_transaction_all= thd->transaction.all; THD_TRANS save_thd_transaction_stmt= thd->transaction.stmt; @@ -281,7 +281,7 @@ static void run_query(THD *thd, char *buf, char *end, thd->options= save_thd_options; thd->query_length= save_thd_query_length; thd->query= save_thd_query; - thd->variables= save_thd_variables; + thd->variables.pseudo_thread_id= save_thread_id; thd->status_var= save_thd_status_var; thd->transaction.all= save_thd_transaction_all; thd->transaction.stmt= save_thd_transaction_stmt; |