* remote.c (get_offsets): Only call free_symfile_segment_data if

data was allocated.
This commit is contained in:
Daniel Jacobowitz 2007-10-05 21:36:00 +00:00
parent 9b7f5d2048
commit 9ef895d6a1
2 changed files with 7 additions and 2 deletions

View File

@ -1,8 +1,12 @@
2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
* remote.c (get_offsets): Only call free_symfile_segment_data if
data was allocated.
2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
* objc-exp.y: ARI fix: remove 4 PARAMS.
2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
* NEWS: Use uniform spacing. Correct version number for GDB 6.7

View File

@ -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)
{