secchan: Fix memory leak, and flush all flows on ofproto destruction.
authorBen Pfaff <blp@nicira.com>
Tue, 10 Mar 2009 17:14:14 +0000 (10:14 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 10 Mar 2009 21:00:34 +0000 (14:00 -0700)
secchan/ofproto.c

index 0d7b97567dc291f9b963bb3a3cf401cc03a7d587..bc99ea20394e11e86fbffdcea27932713d1257f0 100644 (file)
@@ -578,6 +578,9 @@ ofproto_destroy(struct ofproto *p)
         return;
     }
 
+    ofproto_flush_flows(p);
+    classifier_destroy(&p->cls);
+
     LIST_FOR_EACH_SAFE (ofconn, next_ofconn, struct ofconn, node,
                         &p->all_conns) {
         ofconn_destroy(ofconn, p);