Skip to contentSkip to conversation

: free on invalid pointer

ALSA - lib 0001576 [email protected] 1 participant 1 message Nov 18, 2005

lore
Share & tools
lore
#0 lore raw

The following issue has been RESOLVED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1576>
======================================================================

Reported By:                matled
Assigned To:                tiwai
======================================================================
Project:                    ALSA - lib
Issue ID:                   1576
Category:                   0_general
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             11-18-2005 16:17 CET
Last Modified:              11-18-2005 17:01 CET

======================================================================
Summary: free on invalid pointer
Description:
In src/conf.c the parse_args functions uses free on val even if the pointer has not been initialized. My suggestion is either to initialize val with NULL or change the error handling to prevent free(val) if parse_arg returned a value != 0.
======================================================================

----------------------------------------------------------------------
tiwai - 11-18-05 17:01
----------------------------------------------------------------------
Applied to CVS. Thanks.

Issue History
Date Modified Username Field Change
======================================================================

11-18-05 16:17 matled         New Issue                                    
11-18-05 16:17 matled         File Added: patch                            
11-18-05 17:01 tiwai          Status                   new => resolved     
11-18-05 17:01 tiwai          Resolution               open => fixed       
11-18-05 17:01 tiwai          Assigned To               => tiwai           
11-18-05 17:01 tiwai          Note Added: 0006753                          

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

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click