[asterisk-bugs] [JIRA] (ASTERISK-28870) streams: One memory leak and one issue cloning streams
George Joseph (JIRA)
noreply at issues.asterisk.org
Mon May 4 11:32:25 CDT 2020
George Joseph created ASTERISK-28870:
----------------------------------------
Summary: streams: One memory leak and one issue cloning streams
Key: ASTERISK-28870
URL: https://issues.asterisk.org/jira/browse/ASTERISK-28870
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Core/Streams
Affects Versions: 17.4.0, 16.10.0, GIT
Reporter: George Joseph
Severity: Minor
ast_stream_topology_create_from_format_cap() was setting the stream->formats directly but not freeing the default formats. This causes a memory leak.
When cloning a stream, the source stream's format caps _pointer_ is copied to the new stream and it's reference count bumped. If either stream is sete to "removed", this will cause _both_ streams to have their format caps cleared.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list