The new coding style uses the convenience macro GCNEW as declared in
libxl_internal.h. Substitute an invocation of this macro for its
body at the one place it occurs in libxl_qmp.c.
Suggested-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Kelley Nielsen <kelleynnn@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
*param = libxl__json_object_alloc(gc, JSON_MAP);
}
- arg = libxl__zalloc(gc, sizeof(*arg));
+ GCNEW(arg);
arg->map_key = libxl__strdup(gc, name);
arg->obj = obj;