summaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target.c b/gdb/target.c
index fc3e6c09898..ec4d01eff0b 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -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);