Revision 7267c094 hw/dp8393x.c

b/hw/dp8393x.c
870 870
    qemu_del_timer(s->watchdog);
871 871
    qemu_free_timer(s->watchdog);
872 872

  
873
    qemu_free(s);
873
    g_free(s);
874 874
}
875 875

  
876 876
static NetClientInfo net_dp83932_info = {
......
889 889

  
890 890
    qemu_check_nic_model(nd, "dp83932");
891 891

  
892
    s = qemu_mallocz(sizeof(dp8393xState));
892
    s = g_malloc0(sizeof(dp8393xState));
893 893

  
894 894
    s->mem_opaque = mem_opaque;
895 895
    s->memory_rw = memory_rw;

Also available in: Unified diff