[asterisk-bugs] [Asterisk 0011512]: [patch] On error free memory used in ast_el_strtoarr() and complete the /*TODO*/

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Dec 12 10:59:58 CST 2007


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=11512 
====================================================================== 
Reported By:                eliel
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   11512
Category:                   Core-General
Reproducibility:            always
Severity:                   trivial
Priority:                   normal
Status:                     assigned
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 92264 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             12-10-2007 21:38 CST
Last Modified:              12-12-2007 10:59 CST
====================================================================== 
Summary:                    [patch] On error free memory used in
ast_el_strtoarr() and complete the /*TODO*/
Description: 
Please see that I add a new variable '_tmp', because if we assign the
result of the realloc() to the original pointer, we are loosing the
reference and realloc on error doesn't touch the original allocated memory
(so we need to free it).

====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-12-07 10:59  Corydon76      Status                   new => assigned     
12-12-07 10:59  Corydon76      Assigned To               => Corydon76       
======================================================================




More information about the asterisk-bugs mailing list