diff options
author | George Joseph <gjoseph@digium.com> | 2017-01-25 11:21:14 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-01-25 11:21:14 -0600 |
commit | dfcf70c91b2cb557fada1fcd7319135184fe7fdd (patch) | |
tree | 3536d7564bc0fc27f66f41974c916a2c752cb0df | |
parent | e637912c2582f8aa2ac73571c96c56febf968229 (diff) | |
parent | d87f81ddb118edb606ed16abbc23acfa97c92419 (diff) |
Merge "chan_oss.c: Fix format ref leak in oss_read()."
-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; |