From 9398c3dfa5f8c2b2b5bc51dbf079e3edd343ae9e Mon Sep 17 00:00:00 2001 From: Monty Date: Thu, 23 Apr 2020 14:24:52 +0300 Subject: [PATCH] Fixed memory leak if Aria didn't start This is not crtitical as if Aria doesn't start, the server will exit at once. --- storage/maria/ha_maria.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/storage/maria/ha_maria.cc b/storage/maria/ha_maria.cc index dabacc5af53..86bfac19253 100644 --- a/storage/maria/ha_maria.cc +++ b/storage/maria/ha_maria.cc @@ -3663,7 +3663,10 @@ static int ha_maria_init(void *p) maria_assert_if_crashed_table= debug_assert_if_crashed_table; if (res) + { maria_hton= 0; + maria_panic(HA_PANIC_CLOSE); + } ma_killed= ma_killed_in_mariadb;