]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/stellaris.c
Use glib memory allocation and free functions
[mirror_qemu.git] / hw / stellaris.c
index a28093043a0372f3735d5c26198382e614e4b64a..646eec74c6bd4987c69e3e858b266c5cd3c14e5e 100644 (file)
@@ -605,7 +605,7 @@ static int stellaris_sys_init(uint32_t base, qemu_irq irq,
     int iomemtype;
     ssys_state *s;
 
-    s = (ssys_state *)qemu_mallocz(sizeof(ssys_state));
+    s = (ssys_state *)g_malloc0(sizeof(ssys_state));
     s->irq = irq;
     s->board = board;
     /* Most devices come preprogrammed with a MAC address in the user data. */