Commit 4bf33945 authored by Alexander Barkov's avatar Alexander Barkov

A patch from Kristian:

Remove rpl_group_info from THD before freeing it,
to avoid access-after-free in THD.
parent 2ea0e599
...@@ -4568,6 +4568,7 @@ err_during_init: ...@@ -4568,6 +4568,7 @@ err_during_init:
serial_rgi->thd= rli->sql_driver_thd= 0; serial_rgi->thd= rli->sql_driver_thd= 0;
mysql_mutex_lock(&LOCK_thread_count); mysql_mutex_lock(&LOCK_thread_count);
THD_CHECK_SENTRY(thd); THD_CHECK_SENTRY(thd);
thd->rgi_fake= thd->rgi_slave= NULL;
delete serial_rgi; delete serial_rgi;
delete thd; delete thd;
mysql_mutex_unlock(&LOCK_thread_count); mysql_mutex_unlock(&LOCK_thread_count);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment