diff --git a/src/switch_channel.c b/src/switch_channel.c index 47980e233c..2d8d1494a0 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -361,7 +361,7 @@ SWITCH_DECLARE(void) switch_channel_flush_dtmf(switch_channel_t *channel) void *pop; switch_mutex_lock(channel->dtmf_mutex); while(switch_queue_trypop(channel->dtmf_queue, &pop) == SWITCH_STATUS_SUCCESS) { - free(pop); + switch_safe_free(pop); } switch_mutex_unlock(channel->dtmf_mutex); }