Skip to content
Permalink
Browse files
Write leaked memory before assert, if compiled with safemalloc
  • Loading branch information
montywi committed Dec 2, 2017
1 parent c65911a commit cfaaace
Showing 1 changed file with 3 additions and 0 deletions.
@@ -2167,6 +2167,9 @@ static void mysqld_exit(int exit_code)
(long) global_status_var.global_memory_used);
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);
}
cleanup_tls();

0 comments on commit cfaaace

Please sign in to comment.