[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:05:48 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:05 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
====================================================================== 

---------------------------------------------------------------------- 
 (0132878) svnbot (reporter) - 2011-03-12 14:05
 https://issues.asterisk.org/view.php?id=18943#c132878 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 310415

_U  branches/1.8/
U   branches/1.8/funcs/func_odbc.c

------------------------------------------------------------------------
r310415 | tilghman | 2011-03-12 14:05:47 -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=310415 

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




More information about the asterisk-bugs mailing list