From: Justin Pettit Date: Thu, 10 Dec 2009 06:14:54 +0000 (-0800) Subject: ovs-vsctl: Fix minor memory leak in add_port(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0a9f31ddc4fc213f9550c93478b4f03b948f606;p=openvswitch ovs-vsctl: Fix minor memory leak in add_port(). --- diff --git a/utilities/ovs-vsctl.c b/utilities/ovs-vsctl.c index 70e12e65..c033df9f 100644 --- a/utilities/ovs-vsctl.c +++ b/utilities/ovs-vsctl.c @@ -893,6 +893,8 @@ add_port(const struct ovsrec_open_vswitch *ovs, port = ovsrec_port_insert(txn_from_openvswitch(ovs)); ovsrec_port_set_name(port, port_name); ovsrec_port_set_interfaces(port, ifaces, n_ifaces); + free(ifaces); + if (bridge->vlan) { int64_t tag = bridge->vlan; ovsrec_port_set_tag(port, &tag, 1);