From 6195eee9aeeb9951d5ee5bdda836774badc18570 Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Wed, 8 Mar 2017 16:49:28 -0500 Subject: [PATCH] res_rtp_asterisk: Set rtp->rtcp to NULL to prevent double free This is a total stab in the dark, but what the hell. Change-Id: I3d24b9e35cfe28f760a73b436dfaba6a84e89e92 --- res/res_rtp_asterisk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index ba2d815..e2b697d 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -2762,6 +2762,7 @@ static int ast_rtp_destroy(struct ast_rtp_instance *instance) close(rtp->rtcp->s); ast_free(rtp->rtcp->local_addr_str); ast_free(rtp->rtcp); + rtp->rtcp = NULL; } /* Destroy RED if it was being used */ -- 2.7.4