[Asterisk-code-review] chan oss.c: Fix format ref leak in oss read(). (asterisk[14])
Richard Mudgett
asteriskteam at digium.com
Tue Jan 24 13:39:15 CST 2017
Richard Mudgett has uploaded a new change for review. ( https://gerrit.asterisk.org/4784 )
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/84/4784/1
diff --git a/channels/chan_oss.c b/channels/chan_oss.c
index 94de58d..84a1391 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/4784
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0a5d56c7dcf327d60f86a4c25a23571733709fd0
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
More information about the asterisk-code-review
mailing list