session怎么实例化的? 里面的 connection conn; 怎么实例化的 ?struct connection * conn;有就在函数里面malloc或者c++就用new一个没有就 ->NULLif(session->conn!=NULL)这样不就OK了