[ovs-dev] [PATCH 02/16] ofproto: Don't leak struct ofproto's port array.

Ben Pfaff blp at nicira.com
Thu Feb 11 15:18:04 PST 2010


>From Jean Tourrilhes <jt at hpl.hp.com>.
---
 ofproto/ofproto.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
index 69587c8..3768eed 100644
--- a/ofproto/ofproto.c
+++ b/ofproto/ofproto.c
@@ -759,6 +759,8 @@ ofproto_destroy(struct ofproto *p)
 
     mac_learning_destroy(p->ml);
 
+    port_array_destroy(&p->ports);
+
     free(p);
 }
 
-- 
1.6.6.1





More information about the dev mailing list