1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Fix a Valgrind leak error report for not freed binlog injector singleton.

sql/mysqld.cc:
  Free the binlog injector singleton during shutdown.
sql/rpl_injector.cc:
  Add free_instance() method.
sql/rpl_injector.h:
  Add free_instance() method.
This commit is contained in:
unknown
2006-06-19 14:31:22 +02:00
parent 78deb348f0
commit cb28cf8d88
3 changed files with 22 additions and 0 deletions

View File

@ -155,6 +155,16 @@ injector *injector::instance()
return s_injector;
}
void injector::free_instance()
{
injector *inj = s_injector;
if (inj != 0)
{
s_injector= 0;
delete inj;
}
}
injector::transaction injector::new_trans(THD *thd)