[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
Fri Mar 11 09:09:53 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-11 09:09 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
====================================================================== 

---------------------------------------------------------------------- 
 (0132854) irroot (reporter) - 2011-03-11 09:09
 https://issues.asterisk.org/view.php?id=18943#c132854 
---------------------------------------------------------------------- 
if (obj && (stmt = ast_odbc_direct_execute(obj, generic_execute,
ast_str_buffer(buf)))) {

SHOULD BE

if (obj && (stmt = ast_odbc_direct_execute(obj, generic_execute,
ast_str_buffer(insertbuf)))) { 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-11 09:09 irroot         Note Added: 0132854                          
======================================================================




More information about the asterisk-bugs mailing list