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

Kevin Harwell (JIRA) noreply at issues.asterisk.org
Tue Jan 12 10:00:33 CST 2016


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

Kevin Harwell updated ASTERISK-25664:
-------------------------------------

    Affects Version/s:     (was: 13.7.0)
                       13.6.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
>
>
> 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