MXS-1506: Release stored buffer

When the session closes, the current query buffer needs to be freed.
This commit is contained in:
Markus Mäkelä
2018-04-06 12:17:48 +03:00
parent c8d25f293f
commit ed0f20708f

View File

@ -93,6 +93,7 @@ void close_all_connections(SRWBackendList& backends)
void RWSplitSession::close()
{
close_all_connections(m_backends);
reset_query();
if (MXS_LOG_PRIORITY_IS_ENABLED(LOG_INFO) &&
m_sescmd_list.size())