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

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


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

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/83/4783/1

diff --git a/channels/chan_oss.c b/channels/chan_oss.c
index 912a5eb..aa870df 100644
--- a/channels/chan_oss.c
+++ b/channels/chan_oss.c
@@ -727,7 +727,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/4783
To unsubscribe, visit https://gerrit.asterisk.org/settings

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



More information about the asterisk-code-review mailing list