diff --git a/src/switch_msrp.c b/src/switch_msrp.c index b76a043261..b909ed50fd 100644 --- a/src/switch_msrp.c +++ b/src/switch_msrp.c @@ -1264,6 +1264,7 @@ static void *SWITCH_THREAD_FUNC msrp_worker(switch_thread_t *thread, void *obj) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "MSRP_METHOD_AUTH\n"); } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse initial message error!\n"); + switch_msrp_msg_destroy(&msrp_msg); goto end; }