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

Corey Farrell (JIRA) noreply at issues.asterisk.org
Thu Jan 7 09:42:33 CST 2016


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

Corey Farrell updated ASTERISK-25664:
-------------------------------------

    Status: Open  (was: Triage)

> 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.7.0
>            Reporter: Corey Farrell
>            Severity: Minor
>
> 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