This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog c-exp.y
- From: jkratoch at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 25 Jun 2008 15:49:20 -0000
- Subject: src/gdb ChangeLog c-exp.y
CVSROOT: /cvs/src
Module name: src
Changes by: jkratoch@sourceware.org 2008-06-25 15:49:20
Modified files:
gdb : ChangeLog c-exp.y
Log message:
Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
* c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
after the DECFLOAT detection to fix a memory leak. Remove the
redundant NUM initialization. Protect the DECFLOAT detection memory
access before the P block. Restore the P memory content for the
DECFLOAT detection.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.9487&r2=1.9488
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/c-exp.y.diff?cvsroot=src&r1=1.45&r2=1.46