[asterisk-bugs] [Asterisk 0018943]: [patch] There is a resource leak in func_odbc when inserting the previous handle not released

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Mar 10 01:04:57 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18943 
====================================================================== 
Reported By:                irroot
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18943
Category:                   Functions/func_odbc
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.8.3 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-03-09 07:20 CST
Last Modified:              2011-03-10 01:04 CST
====================================================================== 
Summary:                    [patch] There is a resource leak in func_odbc when
inserting the previous handle not released
Description: 
There is a resource leak and eventual crash when insert is called.

patch fixes this and is self explanitory

patch is against trunk but should be good for > 1.6
====================================================================== 

---------------------------------------------------------------------- 
 (0132795) tilghman (manager) - 2011-03-10 01:04
 https://issues.asterisk.org/view.php?id=18943#c132795 
---------------------------------------------------------------------- 
While your patch fixes the leak, it's actually indicative of a larger
problem: transactional handles should be used even for the failover insert
statement.  So what really needs to happen is to port the code from above,
so that the statement can occur as part of a transaction, if necessary. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-10 01:04 tilghman       Note Added: 0132795                          
======================================================================




More information about the asterisk-bugs mailing list