Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> --- numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/numa.c b/numa.c index 100a67febf..35df996738 100644 --- a/numa.c +++ b/numa.c @@ -66,7 +66,7 @@ void numa_set_mem_node_id(ram_addr_t addr, uint64_t size, uint32_t node) return; } - range = g_malloc0(sizeof(*range)); + range = g_new0(struct numa_addr_range, 1); range->mem_start = addr; range->mem_end = addr + size - 1; QLIST_INSERT_HEAD(&numa_info[node].addr, range, entry); -- 2.14.2