Revision 7267c094 hw/omap_intc.c

b/hw/omap_intc.c
358 358
{
359 359
    int iomemtype;
360 360
    struct omap_intr_handler_s *s = (struct omap_intr_handler_s *)
361
            qemu_mallocz(sizeof(struct omap_intr_handler_s) +
361
            g_malloc0(sizeof(struct omap_intr_handler_s) +
362 362
                            sizeof(struct omap_intr_handler_bank_s) * nbanks);
363 363

  
364 364
    s->parent_intr[0] = parent_irq;
......
577 577
{
578 578
    int iomemtype;
579 579
    struct omap_intr_handler_s *s = (struct omap_intr_handler_s *)
580
            qemu_mallocz(sizeof(struct omap_intr_handler_s) +
580
            g_malloc0(sizeof(struct omap_intr_handler_s) +
581 581
                            sizeof(struct omap_intr_handler_bank_s) * nbanks);
582 582

  
583 583
    s->parent_intr[0] = parent_irq;

Also available in: Unified diff