Don't free written frames in chan_mobile's mbl_write() function.
authorMatthew Nicholson <mnicholson@digium.com>
Thu, 1 Jul 2010 12:57:18 +0000 (12:57 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Thu, 1 Jul 2010 12:57:18 +0000 (12:57 +0000)
(closes issue #16430)
Reported by: azbest
Tested by: azbest

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@273312 65c4cc65-6c06-0410-ace0-fbb531ad65f3

addons/chan_mobile.c

index 216a12c..ca3e622 100644 (file)
@@ -1154,7 +1154,6 @@ static int mbl_write(struct ast_channel *ast, struct ast_frame *frame)
 
        while ((f = ast_smoother_read(pvt->smoother))) {
                sco_write(pvt->sco_socket, f->data.ptr, f->datalen);
-               ast_frfree(f);
        }
 
        ast_mutex_unlock(&pvt->lock);