1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Improve reporting from sf_report_leaked_memory()

Other things:
- Added DBUG_EXECUTE_IF("print_allocated_thread_memory") at end of query
  to easier find not freed memory allocated by THD
- Removed free_root() from plugin_init() that did nothing.
This commit is contained in:
Monty
2023-11-26 10:10:37 +02:00
parent 06f7ed4dcd
commit 83214c3406
3 changed files with 10 additions and 5 deletions

View File

@ -1646,7 +1646,6 @@ int plugin_init(int *argc, char **argv, int flags)
}
}
free_root(&tmp_root, MYF(MY_MARK_BLOCKS_FREE));
tmp.state= PLUGIN_IS_UNINITIALIZED;
if (register_builtin(plugin, &tmp, &plugin_ptr))
goto err_unlock;