[asterisk-bugs] [JIRA] (ASTERISK-24476) main/app.c / app_voicemail: ast_writestream leaks

Corey Farrell (JIRA) noreply at issues.asterisk.org
Fri Oct 31 00:25:29 CDT 2014


Corey Farrell created ASTERISK-24476:
----------------------------------------

             Summary: main/app.c / app_voicemail: ast_writestream leaks
                 Key: ASTERISK-24476
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24476
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Applications/app_voicemail, Core/General
    Affects Versions: 13.0.0-beta3, 12.6.1, 11.13.1, 1.8.31.1, SVN
            Reporter: Corey Farrell


Fix leak of ast_writestream recording_fs in app_voicemail:leave_voicemail.
Fix cleanup in __ast_play_and_record where others[x] may be leaked.  This was caught where prepend != NULL && outmsg != NULL, once realfile[x] == NULL any further others[x] would be leaked.  I also added a cleanup block for prepend != NULL && outmsg == NULL.

Note: this is a serious leak, a single ast_writestream is slightly over 64k.



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



More information about the asterisk-bugs mailing list