diff options
Diffstat (limited to 'main/rtp.c')
-rw-r--r-- | main/rtp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/rtp.c b/main/rtp.c index 39593229d..5754710e8 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -2597,6 +2597,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; |