[asterisk-bugs] [JIRA] (ASTERISK-22755) Memory leak in voicemail module with mailbox_full var

Matt Jordan (JIRA) noreply at issues.asterisk.org
Sun Oct 27 14:00:03 CDT 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-22755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=211268#comment-211268 ] 

Matt Jordan commented on ASTERISK-22755:
----------------------------------------

This is not a bug, as there is no memory leak on that code path. {{mailbox_full}} is allocated using Asterisk's wrapper around alloca, which allocates memory on the stack, not the heap.

{noformat}
	mailbox_full = ast_alloca(strlen(box) + strlen(context) + 1);
{noformat}

More information on alloca can be found here: http://man7.org/linux/man-pages/man3/alloca.3.html
                
> Memory leak in voicemail module with mailbox_full var
> -----------------------------------------------------
>
>                 Key: ASTERISK-22755
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22755
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_voicemail
>    Affects Versions: 11.6.0
>         Environment: CentOS 6.4 32 bit
>            Reporter: Alisher
>            Severity: Minor
>
> Memory leak in append_mailbox function. mailbox_full variable is allocated a memory but never released.

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