ovs-vsctl: Fix minor memory leak in add_port().
authorJustin Pettit <jpettit@nicira.com>
Thu, 10 Dec 2009 06:14:54 +0000 (22:14 -0800)
committerJustin Pettit <jpettit@nicira.com>
Thu, 10 Dec 2009 10:33:56 +0000 (02:33 -0800)
utilities/ovs-vsctl.c

index 70e12e652f49185202be88ac02f65afe077707cc..c033df9fea98853deb624f6f470972f2ffcb10c3 100644 (file)
@@ -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);