[asterisk-commits] file: branch 1.2 r48106 - /branches/1.2/rtp.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Nov 29 09:47:12 MST 2006


Author: file
Date: Wed Nov 29 10:47:10 2006
New Revision: 48106

URL: http://svn.digium.com/view/asterisk?view=rev&rev=48106
Log:
If the frame was duplicated before writing out then we need to free it. (issue #8429 reported by edguy3)

Modified:
    branches/1.2/rtp.c

Modified: branches/1.2/rtp.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/rtp.c?view=diff&rev=48106&r1=48105&r2=48106
==============================================================================
--- branches/1.2/rtp.c (original)
+++ branches/1.2/rtp.c Wed Nov 29 10:47:10 2006
@@ -1463,6 +1463,8 @@
 			f = _f;
 		}
 		ast_rtp_raw_write(rtp, f, codec);
+		if (f != _f)
+			ast_frfree(f);
 	}
 		
 	return 0;



More information about the asterisk-commits mailing list