[ovs-dev] [PATCH 4/5] connmgr: Fix memory leak in ofconn monitor table.

Ben Pfaff blp at nicira.com
Thu Jan 24 19:47:59 UTC 2013


Signed-off-by: Ben Pfaff <blp at nicira.com>
---
 ofproto/connmgr.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ofproto/connmgr.c b/ofproto/connmgr.c
index b94c337..3200660 100644
--- a/ofproto/connmgr.c
+++ b/ofproto/connmgr.c
@@ -1177,6 +1177,7 @@ ofconn_destroy(struct ofconn *ofconn)
         hmap_remove(&ofconn->connmgr->controllers, &ofconn->hmap_node);
     }
 
+    hmap_destroy(&ofconn->monitors);
     list_remove(&ofconn->node);
     rconn_destroy(ofconn->rconn);
     rconn_packet_counter_destroy(ofconn->packet_in_counter);
-- 
1.7.2.5




More information about the dev mailing list