[asterisk-bugs] [JIRA] (ASTERISK-23413) Theoretical ref-leak in chan_sip autokill

Rusty Newton (JIRA) noreply at issues.asterisk.org
Tue Mar 4 09:42:48 CST 2014


Rusty Newton created ASTERISK-23413:
---------------------------------------

             Summary: Theoretical ref-leak in chan_sip autokill
                 Key: ASTERISK-23413
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23413
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Channels/chan_sip/General
    Affects Versions: 1.8.27.0, 11.8.0
         Environment: Theoretical / Code review
            Reporter: Steve Davies
            Severity: Minor


While investigating a different ref-count issue, I observed that {code}pvt->autokillid{code} can be prematurely reset to -1 in __sip_autodestruct(), causing a potential ref-leak issue.

IMHO It should only be reset if the call is not going to be rescheduled, and after the lock has been obtained.

I have not seen this cause an issue in the wild.



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



More information about the asterisk-bugs mailing list