Replace some xmalloc-family functions with XNEW-family ones
[deliverable/binutils-gdb.git] / gdb / python / py-inferior.c
index fe8a705cd7618613b9d68fdf0793d95b0664695b..3cfa1d562fb4368a5ee00aef5406fa14f3829a6d 100644 (file)
@@ -332,7 +332,7 @@ add_thread_object (struct thread_info *tp)
 
   inf_obj = (inferior_object *) thread_obj->inf_obj;
 
-  entry = xmalloc (sizeof (struct threadlist_entry));
+  entry = XNEW (struct threadlist_entry);
   entry->thread_obj = thread_obj;
   entry->next = inf_obj->threads;
 
This page took 0.024287 seconds and 4 git commands to generate.