diff options
author | Ben Pfaff <blp@nicira.com> | 2012-02-03 12:33:06 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-02-03 12:44:45 -0800 |
commit | 828c72d0fc3ab51be3a0890099046739fd46b4e8 (patch) | |
tree | 488fa249f0def3b255d2832e50620560a932575e /utilities | |
parent | 5b909cbb3485c209c2fad9d4b6cac447f4c77f40 (diff) |
ovs-ofctl: Fix minor memory leaks.
Found by valgrind.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'utilities')
-rw-r--r-- | utilities/ovs-ofctl.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |