aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-10-05 21:36:00 +0000
committerDaniel Jacobowitz <drow@false.org>2007-10-05 21:36:00 +0000
commit9ef895d6a16cfc08ddc7d881bb44d6adc3df0c4d (patch)
tree1feddb25df19ef9baefc95a125e353ef4d85a981 /gdb/remote.c
parent9b7f5d20489123fb67202427cf11d52f4d6fedfe (diff)
downloadgdb-9ef895d6a16cfc08ddc7d881bb44d6adc3df0c4d.zip
gdb-9ef895d6a16cfc08ddc7d881bb44d6adc3df0c4d.tar.gz
gdb-9ef895d6a16cfc08ddc7d881bb44d6adc3df0c4d.tar.bz2
* remote.c (get_offsets): Only call free_symfile_segment_data if
data was allocated.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 23fa18c..47e02fd 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -2134,7 +2134,8 @@ get_offsets (void)
do_sections = 0;
}
- free_symfile_segment_data (data);
+ if (data)
+ free_symfile_segment_data (data);
if (do_sections)
{