[ovs-dev] [PATCH v2] ofproto: Destroy rule in ofproto_get_vlan_usage().

Ethan Jackson ethan at nicira.com
Fri May 23 18:16:35 UTC 2014


Found by inspection.

Signed-off-by: Ethan Jackson <ethan at nicira.com>
---
 ofproto/ofproto.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
index 63f65c3..356fcb1 100644
--- a/ofproto/ofproto.c
+++ b/ofproto/ofproto.c
@@ -7054,6 +7054,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
-- 
1.8.1.2




More information about the dev mailing list