aboutsummaryrefslogtreecommitdiffstats
path: root/rtp.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-29 16:47:10 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-29 16:47:10 +0000
commit78099d6452c9e469e5f7ffa5099d0deba170823d (patch)
tree0671ded925c166c4602cb4a669d2d25eb01cacb9 /rtp.c
parentbb9dd1e59e4e44ab1f078e90c0e599453b1ae480 (diff)
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.2@48106 f38db490-d61c-443f-a65b-d21fe96a405b
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 e23a813a4..dfdfb88ef 100644
--- a/rtp.c
+++ b/rtp.c
@@ -1463,6 +1463,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;