From: Russell Bryant Date: Mon, 14 Jan 2008 17:38:38 +0000 (+0000) Subject: Revert a change that introduces an unacceptable performance hit and is causing X-Git-Tag: 1.4.18~12^2~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a241dd2b96beb5f61b514b221d4678a9d7e99f4;p=thirdparty%2Fasterisk.git Revert a change that introduces an unacceptable performance hit and is causing memory leaks ... (from rev 97973) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@98774 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/translate.c b/main/translate.c index ba115ed625..893a5b9603 100644 --- a/main/translate.c +++ b/main/translate.c @@ -232,10 +232,8 @@ struct ast_frame *ast_trans_frameout(struct ast_trans_pvt *pvt, 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)