diff options
Diffstat (limited to 'sql/rpl_injector.cc')
-rw-r--r-- | sql/rpl_injector.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/rpl_injector.cc b/sql/rpl_injector.cc index a69cfc2b75f..265f5f61213 100644 --- a/sql/rpl_injector.cc +++ b/sql/rpl_injector.cc @@ -43,6 +43,9 @@ injector::transaction::transaction(MYSQL_LOG *log, THD *thd) injector::transaction::~transaction() { + if (!good()) + return; + /* Needed since my_free expects a 'char*' (instead of 'void*'). */ char* const the_memory= const_cast<char*>(m_start_pos.m_file_name); |