diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
commit | 7fd5097f9fb26871e9f0b329f1cf5554495ed589 (patch) | |
tree | 20b4de6e7953169d2402aff4e158b475b5726e67 /gdb/ax-general.c | |
parent | eac388f33554805a5765a2836926311f77cd8d79 (diff) | |
download | gdb-7fd5097f9fb26871e9f0b329f1cf5554495ed589.tar.gz |
Replace free() with xfree().
Diffstat (limited to 'gdb/ax-general.c')
-rw-r--r-- | gdb/ax-general.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/ax-general.c b/gdb/ax-general.c index 91aefff5442..60e9edf6170 100644 --- a/gdb/ax-general.c +++ b/gdb/ax-general.c @@ -56,8 +56,8 @@ new_agent_expr (CORE_ADDR scope) void free_agent_expr (struct agent_expr *x) { - free (x->buf); - free (x); + xfree (x->buf); + xfree (x); } static void @@ -416,7 +416,7 @@ ax_reqs (struct agent_expr *ax, struct agent_reqs *reqs) if (ax->buf[i] > (sizeof (aop_map) / sizeof (aop_map[0]))) { reqs->flaw = agent_flaw_bad_instruction; - free (reg_mask); + xfree (reg_mask); return; } @@ -425,14 +425,14 @@ ax_reqs (struct agent_expr *ax, struct agent_reqs *reqs) if (!op->name) { reqs->flaw = agent_flaw_bad_instruction; - free (reg_mask); + xfree (reg_mask); return; } if (i + 1 + op->op_size > ax->len) { reqs->flaw = agent_flaw_incomplete_instruction; - free (reg_mask); + xfree (reg_mask); return; } @@ -441,7 +441,7 @@ ax_reqs (struct agent_expr *ax, struct agent_reqs *reqs) if (targets[i] && (heights[i] != height)) { reqs->flaw = agent_flaw_height_mismatch; - free (reg_mask); + xfree (reg_mask); return; } @@ -468,7 +468,7 @@ ax_reqs (struct agent_expr *ax, struct agent_reqs *reqs) if (target < 0 || target >= ax->len) { reqs->flaw = agent_flaw_bad_jump; - free (reg_mask); + xfree (reg_mask); return; } /* Have we already found other jumps to the same location? */ @@ -477,7 +477,7 @@ ax_reqs (struct agent_expr *ax, struct agent_reqs *reqs) if (heights[i] != height) { reqs->flaw = agent_flaw_height_mismatch; - free (reg_mask); + xfree (reg_mask); return; } } @@ -496,7 +496,7 @@ ax_reqs (struct agent_expr *ax, struct agent_reqs *reqs) if (!targets[i + 3]) { reqs->flaw = agent_flaw_hole; - free (reg_mask); + xfree (reg_mask); return; } @@ -531,7 +531,7 @@ ax_reqs (struct agent_expr *ax, struct agent_reqs *reqs) if (targets[i] && !boundary[i]) { reqs->flaw = agent_flaw_bad_jump; - free (reg_mask); + xfree (reg_mask); return; } |