[Asterisk-code-review] chan oss.c: Fix format ref leak in oss read(). (asterisk[master])

Richard Mudgett asteriskteam at digium.com
Tue Jan 24 13:39:28 CST 2017


Richard Mudgett has uploaded a new change for review. ( https://gerrit.asterisk.org/4785 )

Change subject: chan_oss.c: Fix format ref leak in oss_read().
......................................................................

chan_oss.c: Fix format ref leak in oss_read().

Change-Id: I0a5d56c7dcf327d60f86a4c25a23571733709fd0
---
M channels/chan_oss.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/85/4785/1

diff --git a/channels/chan_oss.c b/channels/chan_oss.c
index 0d1e24a..3e1e38d 100644
--- a/channels/chan_oss.c
+++ b/channels/chan_oss.c
@@ -725,7 +725,7 @@
 		return f;
 	/* ok we can build and deliver the frame to the caller */
 	f->frametype = AST_FRAME_VOICE;
-	f->subclass.format = ao2_bump(ast_format_slin);
+	f->subclass.format = ast_format_slin;
 	f->samples = FRAME_SIZE;
 	f->datalen = FRAME_SIZE * 2;
 	f->data.ptr = o->oss_read_buf + AST_FRIENDLY_OFFSET;

-- 
To view, visit https://gerrit.asterisk.org/4785
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0a5d56c7dcf327d60f86a4c25a23571733709fd0
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-code-review mailing list