[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
Sat Mar 12 13:51:25 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-12 13:51 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
====================================================================== 

---------------------------------------------------------------------- 
 (0132877) svnbot (reporter) - 2011-03-12 13:51
 https://issues.asterisk.org/view.php?id=18943#c132877 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 310414

U   branches/1.6.2/funcs/func_odbc.c

------------------------------------------------------------------------
r310414 | tilghman | 2011-03-12 13:51:24 -0600 (Sat, 12 Mar 2011) | 7
lines

Transactional handles should be used for the insertbuf, if available.

Also, fix a possible resource leak.

(closes issue https://issues.asterisk.org/view.php?id=18943)
 Reported by: irroot

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-12 13:51 svnbot         Checkin                                      
2011-03-12 13:51 svnbot         Note Added: 0132877                          
======================================================================




More information about the asterisk-bugs mailing list