aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtp.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-29 16:50:33 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-29 16:50:33 +0000
commit9548bf5fe99c3a55fb4ea994a3e3f88d2d29d057 (patch)
tree1bf63745862df2738dc73e6c8f48eaf1777a4209 /main/rtp.c
parent0d2c05976d6273890580348ac1eeb1fcd16644b7 (diff)
Merged revisions 48106 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r48106 | file | 2006-11-29 11:47:10 -0500 (Wed, 29 Nov 2006) | 2 lines If the frame was duplicated before writing out then we need to free it. (issue #8429 reported by edguy3) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48107 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-rw-r--r--main/rtp.c2
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;