From 13db1a79f838cbbafa82c151d112f7a8fd106c06 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 5 Jun 2014 17:43:46 -0700 Subject: ofproto: Fix memory leak in ofproto_destroy(). Found by valgrind. Signed-off-by: Ben Pfaff Acked-by: Thomas Graf --- ofproto/ofproto.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index be66b0441..29becbc37 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -1228,6 +1228,9 @@ ofproto_destroy__(struct ofproto *ofproto) hmap_destroy(&ofproto->deletions); + ovs_assert(hindex_is_empty(&ofproto->cookies)); + hindex_destroy(&ofproto->cookies); + free(ofproto->vlan_bitmap); ofproto->ofproto_class->dealloc(ofproto); -- cgit v1.2.1