size_t port_idx;
int vlan; /* -1=trunk port, else a 12-bit VLAN ID. */
unsigned long *trunks; /* Bitmap of trunked VLANs, if 'vlan' == -1. */
- const char *name;
+ char *name;
/* An ordinary bridge port has 1 interface.
* A bridge port for bonding has at least 2 interfaces. */
i++;
}
}
+ svec_destroy(&ifaces);
/* Configure remote controller. */
controller = cfg_get_string(0, "bridge.%s.controller", br->name);
}
free(port->ifaces);
free(port->trunks);
+ free(port->name);
free(port);
bridge_flush(br);
}