mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Getting rid of lots of memory leaks (but not quite all of them yet,
some will go away when temporary code is replaced). mysql-test/r/sp.result: Drop db before creating. mysql-test/t/sp.test: Drop db before creating.
This commit is contained in:
@ -191,6 +191,9 @@ THD::THD():user_time(0), is_fatal_error(0),
|
||||
pthread_mutex_unlock(&LOCK_thread_count);
|
||||
randominit(&rand, tmp + (ulong) &rand, tmp + (ulong) ::query_id);
|
||||
}
|
||||
|
||||
/* QQ init the temporary function cache */
|
||||
spfuns.empty();
|
||||
}
|
||||
|
||||
|
||||
@ -282,6 +285,10 @@ void THD::cleanup(void)
|
||||
pthread_mutex_unlock(&LOCK_user_locks);
|
||||
ull= 0;
|
||||
}
|
||||
|
||||
// extern void sp_clear_function_cache(THD *);
|
||||
// sp_clear_function_cache(this);
|
||||
|
||||
cleanup_done=1;
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
Reference in New Issue
Block a user