Revision 7267c094 hw/ptimer.c

b/hw/ptimer.c
210 210
{
211 211
    ptimer_state *s;
212 212

  
213
    s = (ptimer_state *)qemu_mallocz(sizeof(ptimer_state));
213
    s = (ptimer_state *)g_malloc0(sizeof(ptimer_state));
214 214
    s->bh = bh;
215 215
    s->timer = qemu_new_timer_ns(vm_clock, ptimer_tick, s);
216 216
    return s;

Also available in: Unified diff