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

channels/chan_oss.c

index 0d1e24ab7119d8c858c775df23dc16a50c693ba8..3e1e38d37a9c9a4ba0615744b798295030c3ba0e 100644 (file)
@@ -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;