From 9ef895d6a16cfc08ddc7d881bb44d6adc3df0c4d Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 5 Oct 2007 21:36:00 +0000 Subject: [PATCH] * remote.c (get_offsets): Only call free_symfile_segment_data if data was allocated. --- gdb/ChangeLog | 6 +++++- gdb/remote.c | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7659f8ea55..5244f54a65 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,8 +1,12 @@ +2007-10-05 Daniel Jacobowitz + + * remote.c (get_offsets): Only call free_symfile_segment_data if + data was allocated. + 2007-10-03 Pierre Muller * objc-exp.y: ARI fix: remove 4 PARAMS. - 2007-10-03 Daniel Jacobowitz * NEWS: Use uniform spacing. Correct version number for GDB 6.7 diff --git a/gdb/remote.c b/gdb/remote.c index 23fa18c3ab..47e02fd89c 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) {