aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/rtp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/rtp.c b/main/rtp.c
index 9958591a2..9237d8963 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -3070,6 +3070,10 @@ static enum ast_bridge_result bridge_p2p_loop(struct ast_channel *c0, struct ast
(c0->masq || c0->masqr || c1->masq || c1->masqr)) {
if (option_debug > 2)
ast_log(LOG_DEBUG, "p2p-rtp-bridge: Oooh, something is weird, backing out\n");
+ if ((c0->masq || c0->masqr) && (fr = ast_read(c0)))
+ ast_frfree(fr);
+ if ((c1->masq || c1->masqr) && (fr = ast_read(c1)))
+ ast_frfree(fr);
res = AST_BRIDGE_RETRY;
break;
}