removed assignment to NULL in _chat_session_free