[Home]

Summary:ASTERISK-05235: [patch] Fix a rather large memory leak in Directory
Reporter:Tilghman Lesher (tilghman)Labels:
Date Opened:2005-10-04 15:05:37Date Closed:2008-01-15 15:50:07.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/app_directory
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20051004__directory_leak.diff.txt
Description:Each time through the directory, if a user was not found, we leaked an entire ast_config structure for voicemail.conf.  In addition, we also improperly incremented the localuser structure, making any system unable to unload the module (since the usecount would never again be 0).

Also got rid of a nasty goto that was partially to blame for the memory leak.
Comments:By: Kevin P. Fleming (kpfleming) 2005-10-04 18:48:40

Committed to CVS HEAD, thanks!

By: Digium Subversion (svnbot) 2008-01-15 15:50:07.000-0600

Repository: asterisk
Revision: 6719

U   trunk/apps/app_directory.c

------------------------------------------------------------------------
r6719 | kpfleming | 2008-01-15 15:50:06 -0600 (Tue, 15 Jan 2008) | 2 lines

fix memory leak and unload problems (issue ASTERISK-5235)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=6719