Skip to content
Permalink
Browse files
Extend debug_assert_on_not_freed_memory
Don't check global_memory_used if
debug_assert_on_not_freed_memory is not set
  • Loading branch information
montywi authored and cvicentiu committed May 24, 2018
1 parent 494c981 commit 7a4f81b
Showing 1 changed file with 2 additions and 1 deletion.
@@ -2169,7 +2169,8 @@ static void mysqld_exit(int exit_code)
if (opt_endinfo && global_status_var.global_memory_used)
fprintf(stderr, "Warning: Memory not freed: %ld\n",
(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 &&
debug_assert_on_not_freed_memory)
{
DBUG_ASSERT(global_status_var.global_memory_used == 0);
}

0 comments on commit 7a4f81b

Please sign in to comment.