]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* remote.c (get_offsets): Only call free_symfile_segment_data if
authorDaniel Jacobowitz <drow@false.org>
Fri, 5 Oct 2007 21:36:00 +0000 (21:36 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 5 Oct 2007 21:36:00 +0000 (21:36 +0000)
data was allocated.

gdb/ChangeLog
gdb/remote.c

index 7659f8ea556850c494ee0c9e4221ee6602d6721c..5244f54a651c96f22b86c673f46fd3e6b1e340ee 100644 (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
index 23fa18c3abe5cd6265ebebf48d8b144472010563..47e02fd89c2109122e25417faacb80bcdb1aacb5 100644 (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)
     {