From: Matthew Nicholson Date: Thu, 1 Jul 2010 12:57:18 +0000 (+0000) Subject: Don't free written frames in chan_mobile's mbl_write() function. X-Git-Tag: 11.0.0-beta1~2754 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57d9f8e42d78ad942e2b3906cd2b9e9a1ae6e42c;p=thirdparty%2Fasterisk.git Don't free written frames in chan_mobile's mbl_write() function. (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 --- diff --git a/addons/chan_mobile.c b/addons/chan_mobile.c index 216a12c0b6..ca3e62293a 100644 --- a/addons/chan_mobile.c +++ b/addons/chan_mobile.c @@ -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);