diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-14 17:38:38 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-14 17:38:38 +0000 |
commit | fb42ac36e6d4ce2a147c6cf08a67c458031afd34 (patch) | |
tree | f43eb7752079892652ab33b6d4dd08a5272c9cba /main/translate.c | |
parent | 38e5a1a271b9f3557a7bc2246daadd13de4b1c6a (diff) |
Revert a change that introduces an unacceptable performance hit and is causing
memory leaks ... (from rev 97973)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@98774 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/translate.c')
-rw-r--r-- | main/translate.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/main/translate.c b/main/translate.c index ba115ed62..893a5b960 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) |