Revision 7267c094 hw/sh_timer.c

b/hw/sh_timer.c
188 188
    sh_timer_state *s;
189 189
    QEMUBH *bh;
190 190

  
191
    s = (sh_timer_state *)qemu_mallocz(sizeof(sh_timer_state));
191
    s = (sh_timer_state *)g_malloc0(sizeof(sh_timer_state));
192 192
    s->freq = freq;
193 193
    s->feat = feat;
194 194
    s->tcor = 0xffffffff;
......
311 311
    tmu012_state *s;
312 312
    int timer_feat = (feat & TMU012_FEAT_EXTCLK) ? TIMER_FEAT_EXTCLK : 0;
313 313

  
314
    s = (tmu012_state *)qemu_mallocz(sizeof(tmu012_state));
314
    s = (tmu012_state *)g_malloc0(sizeof(tmu012_state));
315 315
    s->feat = feat;
316 316
    s->timer[0] = sh_timer_init(freq, timer_feat, ch0_irq);
317 317
    s->timer[1] = sh_timer_init(freq, timer_feat, ch1_irq);

Also available in: Unified diff