From b545fd3948783d1a1fe5f38a6c20bda5fbc4f87a Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 5 Oct 2007 21:36:56 +0000 Subject: [PATCH] * remote.c (get_offsets): Only call free_symfile_segment_data if data was allocated. --- gdb/ChangeLog | 5 +++++ gdb/remote.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c41b83ae728..f5f605d8ceb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-10-05 Daniel Jacobowitz + + * remote.c (get_offsets): Only call free_symfile_segment_data if + data was allocated. + 2007-10-03 Daniel Jacobowitz * NEWS: Mention XML support for M68K in GDB 6.7. diff --git a/gdb/remote.c b/gdb/remote.c index b46fb1308e8..893511e5749 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) { -- 2.47.3