Commit a50ce944 authored by mkaruza's avatar mkaruza Committed by Jan Lindström

MDEV-23559: Galera LeakSanitizer: detected memory leaks in galera.GAL-419

When process is aborted WSREP deinitialization and memory cleanup is not properly handled.  Other reported leaks are in Galera library and should be fixed there.
parent 8370a38d
......@@ -1900,13 +1900,10 @@ extern "C" void unireg_abort(int exit_code)
WSREP_INFO("Some threads may fail to exit.");
}
if (WSREP_ON)
if (WSREP_ON && wsrep_inited)
{
/* In bootstrap mode we deinitialize wsrep here. */
if (opt_bootstrap || wsrep_recovery)
{
if (wsrep_inited) wsrep_deinit(true);
}
wsrep_deinit(true);
wsrep_deinit_server();
}
#endif // WITH_WSREP
......
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