1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

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.
This commit is contained in:
unknown
2008-02-12 18:21:17 +01:00
parent f12a155ae7
commit abe4c14ae9
2 changed files with 4 additions and 0 deletions

View File

@ -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;
}