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 SUBMITTED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1576>
======================================================================
Reported By: matled
Assigned To:
======================================================================

Project:                    ALSA - lib
Issue ID:                   1576
Category:                   0_general
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             11-18-2005 16:17 CET
Last Modified:              11-18-2005 16:17 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.
======================================================================

Issue History
Date Modified Username Field Change
======================================================================
11-18-05 16:17 matled New Issue
11-18-05 16:17 matled File Added: patch
======================================================================

-------------------------------------------------------
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