]> git.proxmox.com Git - qemu.git/blobdiff - module.c
network scripts: don't block SIGCHLD before forking
[qemu.git] / module.c
index e77d5697685a7927bee40329038eb97d0139f235..91f0e61cbb17e3c21be8704505c9af43bee0c922 100644 (file)
--- a/module.c
+++ b/module.c
@@ -59,7 +59,7 @@ void register_module_init(void (*fn)(void), module_init_type type)
     ModuleEntry *e;
     ModuleTypeList *l;
 
-    e = qemu_mallocz(sizeof(*e));
+    e = g_malloc0(sizeof(*e));
     e->init = fn;
 
     l = find_type(type);