projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a44236
)
ovs-vsctl: Fix minor memory leak in add_port().
author
Justin Pettit
<jpettit@nicira.com>
Thu, 10 Dec 2009 06:14:54 +0000
(22:14 -0800)
committer
Justin Pettit
<jpettit@nicira.com>
Thu, 10 Dec 2009 10:33:56 +0000
(
02:33
-0800)
utilities/ovs-vsctl.c
patch
|
blob
|
history
diff --git
a/utilities/ovs-vsctl.c
b/utilities/ovs-vsctl.c
index 70e12e652f49185202be88ac02f65afe077707cc..c033df9fea98853deb624f6f470972f2ffcb10c3 100644
(file)
--- 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);