* ada-exp.y (write_object_renaming): Use malloc instead of
authorPedro Alves <palves@redhat.com>
Sat, 25 Oct 2008 02:16:39 +0000 (02:16 +0000)
committerPedro Alves <palves@redhat.com>
Sat, 25 Oct 2008 02:16:39 +0000 (02:16 +0000)
xmalloc.
* p-exp.y (pop_current_type): Use free instead of xfree.

gdb/ChangeLog
gdb/ada-exp.y
gdb/p-exp.y

index 3e807417e4e4c9c4c0311f1eb4f180a579bdf238..c30272bda01113806dc4fb9c93319b4bf1488680 100644 (file)
@@ -1,3 +1,9 @@
+2008-10-25  Pedro Alves  <pedro@codesourcery.com>
+
+       * ada-exp.y (write_object_renaming): Use malloc instead of
+       xmalloc.
+       * p-exp.y (pop_current_type): Use free instead of xfree.
+
 2008-10-24  Pedro Alves  <pedro@codesourcery.com>
 
        * fork-child.c (startup_inferior): Only set threads not-executing
index e4406635e31cab7c3a8dbcefdfddaf6383824b0e..4b8bb93a0635cee75aedd6fb89d1e926337bd5ca 100644 (file)
@@ -987,7 +987,7 @@ write_object_renaming (struct block *orig_left_context,
          if (end == NULL)
            end = renaming_expr + strlen (renaming_expr);
          field_name.length = end - renaming_expr;
-         field_name.ptr = xmalloc (end - renaming_expr + 1);
+         field_name.ptr = malloc (end - renaming_expr + 1);
          strncpy (field_name.ptr, renaming_expr, end - renaming_expr);
          field_name.ptr[end - renaming_expr] = '\000';
          renaming_expr = end;
index 4b5ceb2e660c0b0322f00ea347c1a04b2fde55ea..e86cf893bd434370fe465fd2f9a4c537b3c684ce 100644 (file)
@@ -1023,7 +1023,7 @@ pop_current_type (void)
     {
       current_type = tp->stored;
       tp_top = tp->next;
-      xfree (tp);
+      free (tp);
     }
 }