[asterisk-bugs] [JIRA] (ASTERISK-25664) ast_format_cap_append_by_type leaks a reference

Asterisk Team (JIRA) noreply at issues.asterisk.org
Wed Jul 27 10:18:16 CDT 2016


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

Asterisk Team updated ASTERISK-25664:
-------------------------------------

    Target Release Version/s: 14.0.0

> ast_format_cap_append_by_type leaks a reference
> -----------------------------------------------
>
>                 Key: ASTERISK-25664
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25664
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Formats/General
>    Affects Versions: SVN, 13.6.0
>            Reporter: Corey Farrell
>            Assignee: Corey Farrell
>            Severity: Minor
>      Target Release: 13.7.0, 13.8.0, 14.0.0
>
>
> ast_format_cap_append_by_type leaks a reference obtained in a comparison: if (!format || codec != ast_format_get_codec(format)).  The result of ast_format_get_codec is reference counted so it cannot directly be used in a comparison without keeping a pointer to unreference later.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list