summaryrefslogtreecommitdiff
path: root/sql/sql_binlog.cc
diff options
context:
space:
mode:
authorunknown <mkindahl@dl145h.mysql.com>2008-02-12 18:21:17 +0100
committerunknown <mkindahl@dl145h.mysql.com>2008-02-12 18:21:17 +0100
commitabe4c14ae93f0d8c97bd97b5674a5b00ddfc9b1f (patch)
tree3867d79f7d0c2a500a0217b154f81a0b1b773186 /sql/sql_binlog.cc
parentf12a155ae769ff0e9afad55978f23004f2f8ce0a (diff)
downloadmariadb-git-abe4c14ae93f0d8c97bd97b5674a5b00ddfc9b1f.tar.gz
Various fixes to fix memory leaks after merging replication
tree with main. sql/sql_binlog.cc: Adding code to free memory after execution of BINLOG statement. It caused a memory leak in the case that the execution failed for any reason. sql/sql_class.cc: Since rli_fake is checked for NULL at various occations to mean that no rli_fake is assigned, NULL is assigned to rli_fake after deleting the instance.
Diffstat (limited to 'sql/sql_binlog.cc')
-rw-r--r--sql/sql_binlog.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_binlog.cc b/sql/sql_binlog.cc
index cff4ceeccf9..462806ab10d 100644
--- a/sql/sql_binlog.cc
+++ b/sql/sql_binlog.cc
@@ -234,6 +234,7 @@ void mysql_client_binlog_statement(THD* thd)
send_ok(thd);
end:
+ thd->rli_fake->clear_tables_to_lock();
my_free(buf, MYF(MY_ALLOW_ZERO_PTR));
DBUG_VOID_RETURN;
}