[asterisk-bugs] [JIRA] (ASTERISK-23091) possible memory leak in abstract jitterbuffer

Martin Vit (JIRA) noreply at issues.asterisk.org
Fri Jan 3 07:07:03 CST 2014


Martin Vit created ASTERISK-23091:
-------------------------------------

             Summary: possible memory leak in abstract jitterbuffer 
                 Key: ASTERISK-23091
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23091
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Core/Jitterbuffer
    Affects Versions: 11.4.0
            Reporter: Martin Vit


main/jitterbuffer.c - void jb_reset(jitterbuf *jb) nulls whole jb structure which can contain unfreed jb->free frames in case someone calls this function while frames are still in memory. I found this issue in my voipmonitor project when I'm using asterisks jitterbuffer code so I'm not sure if the jb_reset in asterisk is called but at least I have found some calls in channel.c ast_jb_empty_and_reset which will call this in the middle of a call so I'm convinced that it must leak. 

I suggest to empty all frames in jb->free and probably jb->frames in the jb_reset function in jitterbuffer.c 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list