When a resource update message is generated by vSwitch, it creates a
couple of svec objects that need to be explicitly destroyed. This
wasn't happening, so memory would leak after each resource update. This
commit properly destroys them after use.
}
}
}
+ svec_destroy(&br_list);
/* On XenServer systems, extended information about virtual interfaces
* (VIFs) is available, which is needed by the controller.
vif_mac = cfg_get_mac(0, "port.%s.vif-mac", port_list.names[i]);
vif_tlv->vif_mac = htonll(vif_mac);
}
+ svec_destroy(&port_list);
/* Put end marker. */
tlv = ofpbuf_put_zeros(buffer, sizeof(*tlv));