]> git.proxmox.com Git - qemu.git/blobdiff - hw/jazz_led.c
Use glib memory allocation and free functions
[qemu.git] / hw / jazz_led.c
index 1dc22cf2e366ebca5b7bc40b30707cd7fc3f4d37..eb472a04c3e8a1b41db52424a7f4136cd39c9808 100644 (file)
@@ -312,7 +312,7 @@ void jazz_led_init(target_phys_addr_t base)
     LedState *s;
     int io;
 
-    s = qemu_mallocz(sizeof(LedState));
+    s = g_malloc0(sizeof(LedState));
 
     s->state = REDRAW_SEGMENTS | REDRAW_BACKGROUND;