aboutsummaryrefslogtreecommitdiff
path: root/gdb/registry.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/registry.c')
-rw-r--r--gdb/registry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/registry.c b/gdb/registry.c
index 1a3c295..ed614b9 100644
--- a/gdb/registry.c
+++ b/gdb/registry.c
@@ -35,9 +35,9 @@ register_data_with_cleanup (struct registry_data_registry *registry,
curr = &(*curr)->next)
;
- *curr = XMALLOC (struct registry_data_registration);
+ *curr = XNEW (struct registry_data_registration);
(*curr)->next = NULL;
- (*curr)->data = XMALLOC (struct registry_data);
+ (*curr)->data = XNEW (struct registry_data);
(*curr)->data->index = registry->num_registrations++;
(*curr)->data->save = save;
(*curr)->data->free = free;