mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 21:03:55 +08:00
Replace free() with xfree().
This commit is contained in:
@ -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 (¤t_target);
|
||||
|
Reference in New Issue
Block a user