[asterisk-commits] russell: branch 1.4 r98774 - /branches/1.4/main/translate.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 14 11:38:39 CST 2008


Author: russell
Date: Mon Jan 14 11:38:38 2008
New Revision: 98774

URL: http://svn.digium.com/view/asterisk?view=rev&rev=98774
Log:
Revert a change that introduces an unacceptable performance hit and is causing
memory leaks ... (from rev 97973)

Modified:
    branches/1.4/main/translate.c

Modified: branches/1.4/main/translate.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/translate.c?view=diff&rev=98774&r1=98773&r2=98774
==============================================================================
--- branches/1.4/main/translate.c (original)
+++ branches/1.4/main/translate.c Mon Jan 14 11:38:38 2008
@@ -232,10 +232,8 @@
 	f->offset = AST_FRIENDLY_OFFSET;
 	f->src = pvt->t->name;
 	f->data = pvt->outbuf;
-	/* We must clone the frame, because the pvt could disappear
-	 * the moment after we return (and unlock the source channel).
-	 */
-	return ast_frisolate(f);
+
+	return f;
 }
 
 static struct ast_frame *default_frameout(struct ast_trans_pvt *pvt)




More information about the asterisk-commits mailing list