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

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


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=14040 
====================================================================== 
Reported By:                eliel
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   14040
Category:                   Functions/func_odbc
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     assigned
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:              
====================================================================== 
Date Submitted:             2008-12-09 08:42 CST
Last Modified:              2008-12-09 08:42 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:42 eliel          New Issue                                    
2008-12-09 08:42 eliel          Status                   new => assigned     
2008-12-09 08:42 eliel          Assigned To               => Corydon76       
2008-12-09 08:42 eliel          Asterisk Version          => SVN             
2008-12-09 08:42 eliel          SVN Branch (only for SVN checkouts, not tarball
releases) =>  trunk          
2008-12-09 08:42 eliel          SVN Revision (number only!) => 161946          
2008-12-09 08:42 eliel          Disclaimer on File?       => N/A             
======================================================================




More information about the asterisk-bugs mailing list