]> git.proxmox.com Git - qemu.git/blobdiff - hw/mcf_intc.c
Use glib memory allocation and free functions
[qemu.git] / hw / mcf_intc.c
index 6cb0a09b7f4c21d9f29bf5acba18e05194e0979b..99092e72d1ce1eb6d5cba59c5f733a28e6982f33 100644 (file)
@@ -144,7 +144,7 @@ qemu_irq *mcf_intc_init(target_phys_addr_t base, CPUState *env)
     mcf_intc_state *s;
     int iomemtype;
 
-    s = qemu_mallocz(sizeof(mcf_intc_state));
+    s = g_malloc0(sizeof(mcf_intc_state));
     s->env = env;
     mcf_intc_reset(s);