From 7267c0947d7e8ae5dff7bafd932c3bc285f43e5c Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Sat, 20 Aug 2011 22:09:37 -0500 Subject: Use glib memory allocation and free functions qemu_malloc/qemu_free no longer exist after this commit. Signed-off-by: Anthony Liguori --- module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module.c') diff --git a/module.c b/module.c index e77d56976..91f0e61cb 100644 --- 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); -- cgit v1.2.3