未验证 提交 05aa7d2c 编写于 作者: Y YunShu 提交者: GitHub

fix: delete sql_event after use (#261)

### What problem were solved in this pull request?

Problem: memory leak
---------
Co-authored-by: 羽飞's avatarwangyunlai <hnwyllmm@126.com>
上级 89736d4d
......@@ -100,8 +100,8 @@ void SessionStage::handle_request(StageEvent *event)
Session::set_current_session(sev->session());
sev->session()->set_current_request(sev);
SQLStageEvent *sql_event = new SQLStageEvent(sev, sql);
(void)handle_sql(sql_event);
SQLStageEvent sql_event(sev, sql);
(void)handle_sql(&sql_event);
Communicator *communicator = sev->get_communicator();
bool need_disconnect = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册