Index: rtp.c =================================================================== --- rtp.c (revision 190091) +++ rtp.c (working copy) @@ -3194,6 +3194,10 @@ rtp->rtcp ? rtp->rtcp->rtt : 0); if (rtp->smoother) ast_smoother_free(rtp->smoother); + if (g_srtp_res && rtp->srtp) { + g_srtp_res->destroy(rtp->srtp); + rtp->srtp = NULL; + } if (rtp->ioid) ast_io_remove(rtp->io, rtp->ioid); if (rtp->s > -1)