[asterisk-bugs] [JIRA] (ASTERISK-28870) streams: One memory leak and one issue cloning streams
Friendly Automation (JIRA)
noreply at issues.asterisk.org
Wed May 6 07:30:25 CDT 2020
[ https://issues.asterisk.org/jira/browse/ASTERISK-28870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=250650#comment-250650 ]
Friendly Automation commented on ASTERISK-28870:
------------------------------------------------
Change 14387 merged by Friendly Automation:
streams: Fix one memory leak and one formats ref issue
[https://gerrit.asterisk.org/c/asterisk/+/14387|https://gerrit.asterisk.org/c/asterisk/+/14387]
> 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