aboutsummaryrefslogtreecommitdiff
path: root/binutils/rddbg.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2008-06-25 15:49:20 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2008-06-25 15:49:20 +0000
commitfe9441f601347a780ae356cd935aef2d37b824ee (patch)
tree60b5ba44d88c627c679fee814c9860e15ec76646 /binutils/rddbg.c
parent2c40eaebf8d01330b1ee59a262d651fbd5192f32 (diff)
downloadgdb-fe9441f601347a780ae356cd935aef2d37b824ee.zip
gdb-fe9441f601347a780ae356cd935aef2d37b824ee.tar.gz
gdb-fe9441f601347a780ae356cd935aef2d37b824ee.tar.bz2
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.
Diffstat (limited to 'binutils/rddbg.c')
0 files changed, 0 insertions, 0 deletions