]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
If the frame was duplicated before writing out then we need to free it. (issue #8429...
authorJoshua Colp <jcolp@digium.com>
Wed, 29 Nov 2006 16:47:10 +0000 (16:47 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 29 Nov 2006 16:47:10 +0000 (16:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48106 65c4cc65-6c06-0410-ace0-fbb531ad65f3

rtp.c

diff --git a/rtp.c b/rtp.c
index e23a813a4238bf22cf6e74aabeccfb14038369b6..dfdfb88ef45f72e508309b2f83f93306d9f2e2a3 100644 (file)
--- 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;