From: Ben Pfaff Date: Fri, 3 Feb 2012 20:33:06 +0000 (-0800) Subject: ovs-ofctl: Fix minor memory leaks. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=828c72d0fc3ab51be3a0890099046739fd46b4e8;p=openvswitch ovs-ofctl: Fix minor memory leaks. Found by valgrind. Signed-off-by: Ben Pfaff --- diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c index 9b1a1b24..7df0a90a 100644 --- a/utilities/ovs-ofctl.c +++ b/utilities/ovs-ofctl.c @@ -447,6 +447,8 @@ fetch_switch_config(struct vconn *vconn, struct ofp_switch_config *config_) config = reply->data; *config_ = *config; + + ofpbuf_delete(reply); } static void @@ -869,6 +871,8 @@ monitor_vconn(struct vconn *vconn) unixctl_server_wait(server); poll_block(); } + vconn_close(vconn); + unixctl_server_destroy(server); } static void