Index: channels/chan_iax2.c =================================================================== --- channels/chan_iax2.c (revision 130372) +++ channels/chan_iax2.c (working copy) @@ -3429,6 +3429,12 @@ ast_log(LOG_DEBUG, "Really destroying %s now...\n", c->name); iax2_destroy(callno); } + } else if (c->tech_pvt) { + /* If this call no longer exists, but the channel still + * references it we need to set the channel's tech_pvt to null + * to avoid ast_channel_free() trying to free it. + */ + c->tech_pvt = NULL; } ast_mutex_unlock(&iaxsl[callno]); if (option_verbose > 2)