HomeFreeBSD

sound: Fix memory leak in chn_init()

Description

sound: Fix memory leak in chn_init()

In case chn_init() fails, we are leaking memory by not freeing the
feeder.

Sponsored by: The FreeBSD Foundation
MFC after: 2 days
Reviewed by: dev_submerge.ch, markj
Differential Revision: https://reviews.freebsd.org/D45979

(cherry picked from commit 16329b7b3276f09dc70bdd1ca8bc605546fe71e0)

Details

Provenance
christosAuthored on Jul 27 2024, 11:55 AM
Reviewer
dev_submerge.ch
Differential Revision
D45979: sound: Fix memory leak in chn_init()
Parents
rGf55b8bba6092: mixer(8): Add tests
Branches
Unknown
Tags
Unknown