Skip to content

Commit 42bdfc8

Browse files
santoshbandaFacebook Github Bot
authored and
Facebook Github Bot
committed
Fix asan bug
Summary: see title Closes #364 Differential Revision: D4097808 Pulled By: santoshbanda fbshipit-source-id: 111e9d4
1 parent 8670dcf commit 42bdfc8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sql/log_event.cc

+5
Original file line numberDiff line numberDiff line change
@@ -14116,6 +14116,11 @@ Rows_query_log_event::Rows_query_log_event(const char *buf, uint event_len,
1411614116

1411714117
Rows_query_log_event::~Rows_query_log_event()
1411814118
{
14119+
#if defined(MYSQL_SERVER) && defined(HAVE_REPLICATION)
14120+
// reset the the query set during do_apply_event() before freeing up
14121+
// the m_rows_query.
14122+
thd->reset_query();
14123+
#endif
1411914124
my_free(m_rows_query);
1412014125
}
1412114126

0 commit comments

Comments
 (0)