Replace some xmalloc-family functions with XNEW-family ones
[deliverable/binutils-gdb.git] / gdb / python / py-varobj.c
index ec44d5698418ac6fe4fa924aa7b6081f2d62df68..57f8267f657e0e3208ad56cdae45c82def798061 100644 (file)
@@ -113,7 +113,7 @@ py_varobj_iter_next (struct varobj_iter *self)
       error (_("Invalid item from the child list"));
     }
 
-  vitem = xmalloc (sizeof *vitem);
+  vitem = XNEW (struct varobj_item);
   vitem->value = convert_value_from_python (py_v);
   if (vitem->value == NULL)
     gdbpy_print_stack ();
This page took 0.024593 seconds and 4 git commands to generate.