replace XMALLOC with XNEW
[deliverable/binutils-gdb.git] / gdb / registry.c
index 1a3c295908637b2f8625e58e642e3f6d2db0ef51..ed614b9ba6458f6058c262211ce0cc9a6e52d9f3 100644 (file)
@@ -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;
This page took 0.025595 seconds and 4 git commands to generate.