Summary: | ASTERISK-22755: Memory leak in voicemail module with mailbox_full var | ||
Reporter: | Alisher (licedey) | Labels: | |
Date Opened: | 2013-10-23 18:47:05 | Date Closed: | 2013-10-27 13:59:26 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Applications/app_voicemail |
Versions: | 11.6.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | CentOS 6.4 32 bit | Attachments: | |
Description: | Memory leak in append_mailbox function. mailbox_full variable is allocated a memory but never released.
| ||
Comments: | By: Matt Jordan (mjordan) 2013-10-27 13:59:18.837-0500 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 |