aboutsummaryrefslogtreecommitdiff
path: root/gdb/s390-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/s390-nat.c')
-rw-r--r--gdb/s390-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/s390-nat.c b/gdb/s390-nat.c
index 623c3d1..00f6ecc 100644
--- a/gdb/s390-nat.c
+++ b/gdb/s390-nat.c
@@ -138,7 +138,7 @@ int
s390_insert_watchpoint (int pid, CORE_ADDR addr, int len, int rw)
{
CORE_ADDR hi_addr = addr + len - 1;
- watch_area *newarea = (watch_area *) malloc (sizeof (watch_area));
+ watch_area *newarea = (watch_area *) xmalloc (sizeof (watch_area));
if (newarea)
@@ -205,7 +205,7 @@ s390_remove_watchpoint (int pid, CORE_ADDR addr, int len)
}
if (matchCurr)
{
- free (matchCurr);
+ xfree (matchCurr);
watch_area_cnt--;
if (watch_area_cnt)
{