From 059ef3c65f596f93e56c7062e35977d429faa4ab Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Fri, 23 May 2014 11:16:35 -0700 Subject: [PATCH] ofproto: Destroy rule in ofproto_get_vlan_usage(). Found by inspection. Signed-off-by: Ethan Jackson Signed-off-by: Ben Pfaff Acked-by: Flavio Leitner --- ofproto/ofproto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 26f1ed41c..4615f7ed8 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -6999,6 +6999,8 @@ ofproto_get_vlan_usage(struct ofproto *ofproto, unsigned long int *vlan_bitmap) } fat_rwlock_unlock(&oftable->cls.rwlock); } + + cls_rule_destroy(&target); } /* Returns true if new VLANs have come into use by the flow table since the