[asterisk-bugs] [JIRA] (ASTERISK-28870) streams: One memory leak and one issue cloning streams

Asterisk Team (JIRA) noreply at issues.asterisk.org
Thu May 28 07:27:28 CDT 2020


     [ https://issues.asterisk.org/jira/browse/ASTERISK-28870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team updated ASTERISK-28870:
-------------------------------------

    Target Release Version/s: 16.11.0

> 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
>      Target Release: 16.11.0
>
>
> 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