Commit 843503e9 authored by Vasil Dimov's avatar Vasil Dimov Committed by Jan Lindström

Set wsrep_rli to NULL after deleting it

parent ff979674
......@@ -1695,7 +1695,10 @@ THD::~THD()
mysql_mutex_unlock(&LOCK_wsrep_thd);
mysql_mutex_destroy(&LOCK_wsrep_thd);
mysql_cond_destroy(&COND_wsrep_thd);
if (wsrep_rli) delete wsrep_rli;
if (wsrep_rli != NULL) {
delete wsrep_rli;
wsrep_rli = NULL;
}
if (wsrep_status_vars) wsrep->stats_free(wsrep, wsrep_status_vars);
#endif
/* Close connection */
......
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