mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 18:25:30 +02:00
Fixed some memory leaks
Disabled some asserts that we can't yet have enabled
This commit is contained in:
parent
dfcc502ab5
commit
f62f4bd563
12 changed files with 29 additions and 14 deletions
|
|
@ -857,7 +857,7 @@ THD::THD()
|
|||
#if defined(ENABLED_DEBUG_SYNC)
|
||||
debug_sync_control(0),
|
||||
#endif /* defined(ENABLED_DEBUG_SYNC) */
|
||||
main_da(0, false),
|
||||
main_da(0, false, false),
|
||||
m_stmt_da(&main_da)
|
||||
{
|
||||
ulong tmp;
|
||||
|
|
@ -1561,7 +1561,9 @@ THD::~THD()
|
|||
{
|
||||
DBUG_PRINT("error", ("memory_used: %lld", status_var.memory_used));
|
||||
SAFEMALLOC_REPORT_MEMORY(my_thread_dbug_id());
|
||||
#ifdef ENABLE_BEFORE_END_OF_MERGE_QQ
|
||||
DBUG_ASSERT(status_var.memory_used == 0); // Ensure everything is freed
|
||||
#endif
|
||||
}
|
||||
|
||||
set_current_thd(orig_thd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue