]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_oss.c: Fix format ref leak in oss_read(). 83/4783/1
authorRichard Mudgett <rmudgett@digium.com>
Tue, 10 Jan 2017 20:03:24 +0000 (14:03 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 24 Jan 2017 19:38:32 +0000 (13:38 -0600)
Change-Id: I0a5d56c7dcf327d60f86a4c25a23571733709fd0

channels/chan_oss.c

index 912a5ebbeb1280e8679f036d17c2f6ad95df65ab..aa870dfc2299bd6fb2bc8fee7f50269d30fc8ad7 100644 (file)
@@ -727,7 +727,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;