[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
[ https://issues.asterisk.org/jira/browse/ASTERISK-28870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Joseph reassigned ASTERISK-28870:
----------------------------------------
Assignee: George Joseph
> 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: GIT, 16.10.0, 17.4.0
> Reporter: George Joseph
> Assignee: 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