Commit a3fe485d authored by mkindahl@dl145h.mysql.com's avatar mkindahl@dl145h.mysql.com
Browse files

Various fixes to fix memory leaks after merging replication

tree with main.
parent e91c287e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}
+3 −0
Original line number Diff line number Diff line
@@ -870,7 +870,10 @@ THD::~THD()
#endif  
#ifndef EMBEDDED_LIBRARY
  if (rli_fake)
  {
    delete rli_fake;
    rli_fake= NULL;
  }
#endif

  free_root(&main_mem_root, MYF(0));