From 68f92f98acf240b5935438e18d1cc9a5bde1e6de Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Thu, 25 Sep 1997 18:22:46 +0000 Subject: [PATCH] * sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC and zfree instead of xmalloc and free. Prevents warnings. --- sim/common/sim-break.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/common/sim-break.c b/sim/common/sim-break.c index 809f3abdcd..d735c8572d 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; } -- 2.34.1