]> git.proxmox.com Git - qemu.git/blobdiff - hw/slavio_timer.c
Use glib memory allocation and free functions
[qemu.git] / hw / slavio_timer.c
index 5511313687c2048ce130ec13cc6a8a8be18db21e..f89b4fb5bfda4896d245c1f546a800da87f2bb0b 100644 (file)
@@ -381,7 +381,7 @@ static int slavio_timer_init1(SysBusDevice *dev)
     TimerContext *tc;
 
     for (i = 0; i <= MAX_CPUS; i++) {
-        tc = qemu_mallocz(sizeof(TimerContext));
+        tc = g_malloc0(sizeof(TimerContext));
         tc->s = s;
         tc->timer_index = i;