From: William King Date: Thu, 7 Jul 2016 22:35:24 +0000 (-0700) Subject: FS-9310 Part two. Properly destroy the timeout struct after the message has sent... X-Git-Tag: v1.6.10~1^2~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d39170ccd1d002165402556f62182d5cd41f0fa;p=thirdparty%2Ffreeswitch.git FS-9310 Part two. Properly destroy the timeout struct after the message has sent, or timed out. --- diff --git a/src/mod/applications/mod_sms_flowroute/mod_sms_flowroute.c b/src/mod/applications/mod_sms_flowroute/mod_sms_flowroute.c index 19dbfe8b02..3d7d42484b 100644 --- a/src/mod/applications/mod_sms_flowroute/mod_sms_flowroute.c +++ b/src/mod/applications/mod_sms_flowroute/mod_sms_flowroute.c @@ -418,6 +418,7 @@ switch_status_t mod_sms_flowroute_profile_send_message(mod_sms_flowroute_profile goto err; } + h2o_timeout_dispose(msg->ctx.loop, msg->ctx.io_timeout); switch_mutex_destroy(msg->mutex); switch_safe_free(msg->req.base); switch_safe_free(msg); @@ -427,6 +428,7 @@ switch_status_t mod_sms_flowroute_profile_send_message(mod_sms_flowroute_profile if ( msg && 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); return SWITCH_STATUS_GENERR;