mirror of
https://github.com/MariaDB/server.git
synced 2026-04-22 16:25:30 +02: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:
parent
78deb348f0
commit
cb28cf8d88
3 changed files with 22 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue