git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cb80d80
)
ovs-ofctl: Fix memory leak in "check-vlan" test command.
author
Ben Pfaff
<blp@nicira.com>
Fri, 17 Aug 2012 20:59:46 +0000
(13:59 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 17 Aug 2012 22:11:08 +0000
(15:11 -0700)
Found by valgrind.
Signed-off-by: Ben Pfaff <blp@nicira.com>
utilities/ovs-ofctl.c
patch
|
blob
|
history
diff --git
a/utilities/ovs-ofctl.c
b/utilities/ovs-ofctl.c
index
dd5f4ba
..
622e32f
100644
(file)
--- a/
utilities/ovs-ofctl.c
+++ b/
utilities/ovs-ofctl.c
@@
-2615,6
+2615,7
@@
ofctl_check_vlan(int argc OVS_UNUSED, char *argv[])
printf("%04"PRIx16"/%04"PRIx16"\n",
ntohs(fm.cr.flow.vlan_tci),
ntohs(fm.cr.wc.vlan_tci_mask));
printf("%04"PRIx16"/%04"PRIx16"\n",
ntohs(fm.cr.flow.vlan_tci),
ntohs(fm.cr.wc.vlan_tci_mask));
+ free(string_s);
/* Convert to and from NXM. */
ofpbuf_init(&nxm, 0);
/* Convert to and from NXM. */
ofpbuf_init(&nxm, 0);