]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_oss.c: Fix format ref leak in oss_read(). 84/4784/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:39:15 +0000 (13:39 -0600)
Change-Id: I0a5d56c7dcf327d60f86a4c25a23571733709fd0

channels/chan_oss.c

index 94de58da001a804f0e1b24eb4aec69ad3290e188..84a1391dad7ca886d9b3959edd3ae0df7e7fe059 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;