From a0a9f31ddc4fc213f9550c93478b4f03b948f606 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Wed, 9 Dec 2009 22:14:54 -0800 Subject: [PATCH] ovs-vsctl: Fix minor memory leak in add_port(). --- utilities/ovs-vsctl.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.30.2