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:
@ -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)
|
||||
|
Reference in New Issue
Block a user