diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1991-04-22 20:08:53 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1991-04-22 20:08:53 +0000 |
commit | 777bef06cd075ee4031187fe28381d5d5edd4f94 (patch) | |
tree | 0ca9c4eaec086bb1a36e3ae9a7f6f29757612ca7 /gdb/exec.c | |
parent | * breakpoint.c (bpstat_print): Try all elements on the bpstat (diff) | |
download | binutils-gdb-777bef06cd075ee4031187fe28381d5d5edd4f94.tar.gz binutils-gdb-777bef06cd075ee4031187fe28381d5d5edd4f94.tar.bz2 binutils-gdb-777bef06cd075ee4031187fe28381d5d5edd4f94.zip |
Check for NULL selected_frame in various places.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r-- | gdb/exec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/exec.c b/gdb/exec.c index 730692ae927..32795c640fb 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -193,6 +193,8 @@ build_section_table (some_bfd, start, end) count = bfd_count_sections (some_bfd); if (count == 0) abort(); /* return 1? */ + if (*start) + free (*start); *start = (struct section_table *) xmalloc (count * sizeof (**start)); *end = *start; bfd_map_over_sections (some_bfd, add_to_section_table, end); |