Replace some xmalloc-family functions with XNEW-family ones
[deliverable/binutils-gdb.git] / gdb / environ.c
index 824a6f5d46e9b7d967825144e845f5feac03f0a4..cd314fe2ac5640a01d7e3e135bc750e82a6f8a03 100644 (file)
@@ -29,7 +29,7 @@ make_environ (void)
 {
   struct gdb_environ *e;
 
-  e = (struct gdb_environ *) xmalloc (sizeof (struct gdb_environ));
+  e = XNEW (struct gdb_environ);
 
   e->allocated = 10;
   e->vector = (char **) xmalloc ((e->allocated + 1) * sizeof (char *));
This page took 0.036496 seconds and 4 git commands to generate.