From: Ben Pfaff Date: Fri, 17 Aug 2012 20:59:46 +0000 (-0700) Subject: ovs-ofctl: Fix memory leak in "check-vlan" test command. X-Git-Tag: sliver-openvswitch-1.8.90-0~48^2~25 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=4d859fa9821c79992d49932a599760f0b334d106 ovs-ofctl: Fix memory leak in "check-vlan" test command. Found by valgrind. Signed-off-by: Ben Pfaff --- diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c index dd5f4ba1f..622e32f3b 100644 --- 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)); + free(string_s); /* Convert to and from NXM. */ ofpbuf_init(&nxm, 0);