From: Ben Pfaff Date: Fri, 18 Jan 2013 23:17:15 +0000 (-0800) Subject: connmgr: Fix memory leak in ofconn monitor table. X-Git-Tag: sliver-openvswitch-1.10.90-1~10^2~80 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=92bbc96a4eb0fe2be1918c563ad20f72c819fe17 connmgr: Fix memory leak in ofconn monitor table. Signed-off-by: Ben Pfaff Acked-by: Ethan Jackson --- diff --git a/ofproto/connmgr.c b/ofproto/connmgr.c index 1a9dc21b1..b8cdfa547 100644 --- a/ofproto/connmgr.c +++ b/ofproto/connmgr.c @@ -1189,6 +1189,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);