[asterisk-bugs] [Asterisk 0013096]: [patch] avoid a leak in an error handling path

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Jul 17 08:11:23 CDT 2008


The following issue requires your FEEDBACK. 
====================================================================== 
http://bugs.digium.com/view.php?id=13096 
====================================================================== 
Reported By:                gknispel_proformatique
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13096
Category:                   Resources/res_config_sqlite
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 131605 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             07-17-2008 07:15 CDT
Last Modified:              07-17-2008 08:11 CDT
====================================================================== 
Summary:                    [patch] avoid a leak in an error handling path
Description: 
In realtime_multi_handler(), query is not correctly freed if the ORDER BY
sqlite_mprintf() fails.
====================================================================== 

---------------------------------------------------------------------- 
 Corydon76 - 07-17-08 08:11  
---------------------------------------------------------------------- 
I think you misunderstand the code.  There is no memory leak, here.  If the
sqlite_mprintf fails, then it returns NULL, which is a value that cannot be
freed. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-17-08 08:11  Corydon76      Note Added: 0090379                          
07-17-08 08:11  Corydon76      Status                   new => feedback     
======================================================================




More information about the asterisk-bugs mailing list