提交 5d39170c authored 作者: William King's avatar William King

FS-9310 Part two. Properly destroy the timeout struct after the message has sent, or timed out.

上级 e5f46fae
...@@ -418,6 +418,7 @@ switch_status_t mod_sms_flowroute_profile_send_message(mod_sms_flowroute_profile ...@@ -418,6 +418,7 @@ switch_status_t mod_sms_flowroute_profile_send_message(mod_sms_flowroute_profile
goto err; goto err;
} }
h2o_timeout_dispose(msg->ctx.loop, msg->ctx.io_timeout);
switch_mutex_destroy(msg->mutex); switch_mutex_destroy(msg->mutex);
switch_safe_free(msg->req.base); switch_safe_free(msg->req.base);
switch_safe_free(msg); switch_safe_free(msg);
...@@ -427,6 +428,7 @@ switch_status_t mod_sms_flowroute_profile_send_message(mod_sms_flowroute_profile ...@@ -427,6 +428,7 @@ switch_status_t mod_sms_flowroute_profile_send_message(mod_sms_flowroute_profile
if ( msg && msg->mutex ) { if ( msg && msg->mutex ) {
switch_mutex_destroy(msg->mutex); switch_mutex_destroy(msg->mutex);
} }
h2o_timeout_dispose(msg->ctx.loop, msg->ctx.io_timeout);
switch_safe_free(msg->req.base); switch_safe_free(msg->req.base);
switch_safe_free(msg); switch_safe_free(msg);
return SWITCH_STATUS_GENERR; return SWITCH_STATUS_GENERR;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论