Commit bfea373b authored by Sergei Golubchik's avatar Sergei Golubchik

merge

parents 185c2b8a f2d8af59
...@@ -896,12 +896,13 @@ THD::~THD() ...@@ -896,12 +896,13 @@ THD::~THD()
#endif #endif
stmt_map.reset(); /* close all prepared statements */ stmt_map.reset(); /* close all prepared statements */
DBUG_ASSERT(lock_info.n_cursors == 0); DBUG_ASSERT(lock_info.n_cursors == 0);
ha_close_connection(this);
plugin_thdvar_cleanup(this);
if (!cleanup_done) if (!cleanup_done)
cleanup(); cleanup();
ha_close_connection(this);
plugin_thdvar_cleanup(this);
DBUG_PRINT("info", ("freeing security context")); DBUG_PRINT("info", ("freeing security context"));
main_security_ctx.destroy(); main_security_ctx.destroy();
safeFree(db); safeFree(db);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment