[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 14:08:21 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18943 
====================================================================== 
Reported By:                irroot
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   18943
Category:                   Functions/func_odbc
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2011-03-09 07:20 CST
Last Modified:              2011-03-12 14:08 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
====================================================================== 

---------------------------------------------------------------------- 
 (0132879) svnbot (reporter) - 2011-03-12 14:08
 https://issues.asterisk.org/view.php?id=18943#c132879 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 310416

_U  trunk/
U   trunk/funcs/func_odbc.c

------------------------------------------------------------------------
r310416 | tilghman | 2011-03-12 14:08:20 -0600 (Sat, 12 Mar 2011) | 21
lines

Merged revisions 310415 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r310415 | tilghman | 2011-03-12 14:05:46 -0600 (Sat, 12 Mar 2011) | 14
lines
  
  Merged revisions 310414 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ........
    r310414 | tilghman | 2011-03-12 13:51:23 -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=310416 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-12 14:08 svnbot         Checkin                                      
2011-03-12 14:08 svnbot         Note Added: 0132879                          
======================================================================




More information about the asterisk-bugs mailing list