diff options
author | Richard Mudgett <rmudgett@digium.com> | 2017-01-10 14:03:24 -0600 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2017-01-24 13:39:27 -0600 |
commit | d87f81ddb118edb606ed16abbc23acfa97c92419 (patch) | |
tree | 8bd580e4c1537e700917150edc6ce0b686887d97 /channels | |
parent | f517c015e244f54a94a10b419163425c8131d497 (diff) |
chan_oss.c: Fix format ref leak in oss_read().
Change-Id: I0a5d56c7dcf327d60f86a4c25a23571733709fd0
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_oss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c index 0d1e24ab7..3e1e38d37 100644 --- a/channels/chan_oss.c +++ b/channels/chan_oss.c @@ -725,7 +725,7 @@ static struct ast_frame *oss_read(struct ast_channel *c) 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; |