HomeFreeBSD

Fix huge memory leak within sound buffer (during channel destruction,
rS166393Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Fix huge memory leak within sound buffer (during channel destruction,
buffer resizing, etc.) that was here since eon. Free all (unmanaged)
allocated buffer through sndbuf_destroy() in case we forgot to call
sndbuf_free(). For a managed buffer (mostly hw specific managed buffer),
either provide CHANNEL_FREE() method with appropriate return value to
invoke semi-automatic sndbuf_free() or simply do it on their own. If
everything is failed, sndbuf_destroy() will come to the rescue as a
final measure.

MFC after: 3 days

Details

Provenance
ariffAuthored on
Parents
rS166392: Fix apparent memory leak (during vchan destruction) that was here
Branches
Unknown
Tags
Unknown

Event Timeline