aboutsummaryrefslogtreecommitdiff
path: root/gdb/memattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/memattr.c')
-rw-r--r--gdb/memattr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/memattr.c b/gdb/memattr.c
index 5e9e9d5..ba64291 100644
--- a/gdb/memattr.c
+++ b/gdb/memattr.c
@@ -28,7 +28,7 @@ const struct mem_attrib default_mem_attrib =
};
static struct mem_region *mem_region_chain = NULL;
-static mem_number = 0;
+static int mem_number = 0;
static struct mem_region *
create_mem_region (CORE_ADDR lo, CORE_ADDR hi,
@@ -71,7 +71,7 @@ create_mem_region (CORE_ADDR lo, CORE_ADDR hi,
static void
delete_mem_region (struct mem_region *m)
{
- free (m);
+ xfree (m);
}
/*