mirror of
https://github.com/MariaDB/server.git
synced 2026-05-17 20:37:12 +02:00
Report memory leaks from mariadbd if -T or --debug is used
Before memory leaks was only reported if server stopped normally. This made it harder to find out where the leaks happened when debugging test cases.
This commit is contained in:
parent
36cdd5c3cd
commit
942a5a89a9
1 changed files with 1 additions and 1 deletions
|
|
@ -1863,7 +1863,7 @@ static void mysqld_exit(int exit_code)
|
|||
{
|
||||
fprintf(stderr, "Warning: Memory not freed: %lld\n",
|
||||
(longlong) global_status_var.global_memory_used);
|
||||
if (exit_code == 0)
|
||||
if (exit_code == 0 || opt_endinfo)
|
||||
SAFEMALLOC_REPORT_MEMORY(0);
|
||||
}
|
||||
DBUG_LEAVE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue