Replace free() with xfree().
[deliverable/binutils-gdb.git] / gdb / target.c
index fc3e6c098988b4150a0d7b401d07cbc45a4d7d31..ec4d01eff0ba13c7a1da777312c8463cd2009484 100644 (file)
@@ -664,7 +664,7 @@ push_target (struct target_ops *t)
        else
          target_stack = cur->next;     /* Unchain first on list */
        tmp = cur->next;
-       free (cur);
+       xfree (cur);
        cur = tmp;
       }
 
@@ -718,7 +718,7 @@ unpush_target (struct target_ops *t)
   else
     prev->next = cur->next;
 
-  free (cur);                  /* Release the target_stack_item */
+  xfree (cur);                 /* Release the target_stack_item */
 
   update_current_target ();
   cleanup_target (&current_target);
This page took 0.02363 seconds and 4 git commands to generate.