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 69587c8cf9da0c9acbd762c41227cb9a9b783c3a..3768eede02a7db716dfb495cbba04316524034cb 100644 (file)
@@ -759,6 +759,8 @@ ofproto_destroy(struct ofproto *p)
 
     mac_learning_destroy(p->ml);
 
+    port_array_destroy(&p->ports);
+
     free(p);
 }