aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sim/common/sim-break.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/common/sim-break.c b/sim/common/sim-break.c
index 809f3ab..d735c85 100644
--- a/sim/common/sim-break.c
+++ b/sim/common/sim-break.c
@@ -163,7 +163,7 @@ sim_set_breakpoint (sd, addr)
else
break;
- bp = (struct sim_breakpoint *) xmalloc (sizeof (struct sim_breakpoint));
+ bp = ZALLOC (struct sim_breakpoint);
bp->addr = addr;
bp->next = STATE_BREAKPOINTS (sd);
@@ -200,7 +200,7 @@ sim_clear_breakpoint (sd, addr)
else
STATE_BREAKPOINTS (sd) = NULL;
- free (bp);
+ zfree (bp);
return SIM_RC_OK;
}