[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


Corey Farrell created ASTERISK-25664:
----------------------------------------

             Summary: 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