[asterisk-bugs] [Asterisk 0014040]: [patch] Fix a memory leak while using threadstorage.

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Dec 9 08:49:28 CST 2008


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=14040 
====================================================================== 
Reported By:                eliel
Assigned To:                eliel
====================================================================== 
Project:                    Asterisk
Issue ID:                   14040
Category:                   Functions/func_odbc
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     resolved
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 161946 
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-12-09 08:42 CST
Last Modified:              2008-12-09 08:49 CST
====================================================================== 
Summary:                    [patch] Fix a memory leak while using threadstorage.
Description: 
We are allocating a threadstorage when it is not needed, and the memory
will never be deallocated until asterisk stops running (obviusly).
This is when calling the CLI command implementation with CLI_INIT.

Also we were not checking the allocation result.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-09 08:49 svnbot         Status                   assigned => resolved
2008-12-09 08:49 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list