mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
Extend debug_assert_on_not_freed_memory
Don't check global_memory_used if debug_assert_on_not_freed_memory is not set
This commit is contained in:
parent
494c981d23
commit
7a4f81b4c0
1 changed files with 2 additions and 1 deletions
|
|
@ -2169,7 +2169,8 @@ static void mysqld_exit(int exit_code)
|
||||||
if (opt_endinfo && global_status_var.global_memory_used)
|
if (opt_endinfo && global_status_var.global_memory_used)
|
||||||
fprintf(stderr, "Warning: Memory not freed: %ld\n",
|
fprintf(stderr, "Warning: Memory not freed: %ld\n",
|
||||||
(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 &&
|
||||||
|
debug_assert_on_not_freed_memory)
|
||||||
{
|
{
|
||||||
DBUG_ASSERT(global_status_var.global_memory_used == 0);
|
DBUG_ASSERT(global_status_var.global_memory_used == 0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue