Commit cfaaace6 authored by Monty's avatar Monty

Write leaked memory before assert, if compiled with safemalloc

parent c65911ac
...@@ -2167,6 +2167,9 @@ static void mysqld_exit(int exit_code) ...@@ -2167,6 +2167,9 @@ static void mysqld_exit(int exit_code)
(long) global_status_var.global_memory_used); (long) global_status_var.global_memory_used);
if (!opt_debugging && !my_disable_leak_check && exit_code == 0) if (!opt_debugging && !my_disable_leak_check && exit_code == 0)
{ {
#ifdef SAFEMALLOC
sf_report_leaked_memory(0);
#endif
DBUG_SLOW_ASSERT(global_status_var.global_memory_used == 0); DBUG_SLOW_ASSERT(global_status_var.global_memory_used == 0);
} }
cleanup_tls(); cleanup_tls();
......
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