Revision 7f76abe1

b/net.c
1128 1128
    return -1;
1129 1129
}
1130 1130

  
1131
void net_client_uninit(NICInfo *nd)
1132
{
1133
    if (nd->vlan) {
1134
        nd->vlan->nb_guest_devs--;
1135
    }
1136
    nb_nics--;
1137

  
1138
    qemu_free(nd->model);
1139
    qemu_free(nd->name);
1140
    qemu_free(nd->devaddr);
1141

  
1142
    nd->used = 0;
1143
}
1144

  
1145 1131
static int net_host_check_device(const char *device)
1146 1132
{
1147 1133
    int i;
b/net.h
163 163
extern const char *legacy_bootp_filename;
164 164

  
165 165
int net_client_init(Monitor *mon, QemuOpts *opts, int is_netdev);
166
void net_client_uninit(NICInfo *nd);
167 166
int net_client_parse(QemuOptsList *opts_list, const char *str);
168 167
int net_init_clients(void);
169 168
void net_cleanup(void);

Also available in: Unified diff