aboutsummaryrefslogtreecommitdiffstats
path: root/rtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtp.c')
-rw-r--r--rtp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rtp.c b/rtp.c
index d7730830c..6d2f5049c 100644
--- a/rtp.c
+++ b/rtp.c
@@ -1481,6 +1481,8 @@ int ast_rtp_write(struct ast_rtp *rtp, struct ast_frame *_f)
f = _f;
}
ast_rtp_raw_write(rtp, f, codec);
+ if (f != _f)
+ ast_frfree(f);
}
return 0;