ofproto: Don't leak struct ofproto's port array.
authorBen Pfaff <blp@nicira.com>
Thu, 11 Feb 2010 23:04:00 +0000 (15:04 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 12 Feb 2010 21:55:46 +0000 (13:55 -0800)
From Jean Tourrilhes <jt@hpl.hp.com>.

ofproto/ofproto.c

index 69587c8..3768eed 100644 (file)
@@ -759,6 +759,8 @@ ofproto_destroy(struct ofproto *p)
 
     mac_learning_destroy(p->ml);
 
+    port_array_destroy(&p->ports);
+
     free(p);
 }