OSDN Git Service

Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
authorjkratoch <jkratoch>
Wed, 25 Jun 2008 15:49:20 +0000 (15:49 +0000)
committerjkratoch <jkratoch>
Wed, 25 Jun 2008 15:49:20 +0000 (15:49 +0000)
commit485afe76d64a4171d5ed49426552e9f9c417a004
tree358d5b6dc24f7719355d469eefbe953e7ae5d2e9
parentb6f966c491d2c65d9b89a01ee74c95448130b222
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.
gdb/ChangeLog
gdb/c-exp.y