From: Ben Pfaff Date: Tue, 10 Mar 2009 17:14:14 +0000 (-0700) Subject: secchan: Fix memory leak, and flush all flows on ofproto destruction. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05150f99eefa6a05e175feb9a5eb3c2ce9001f1a;p=openvswitch secchan: Fix memory leak, and flush all flows on ofproto destruction. --- diff --git a/secchan/ofproto.c b/secchan/ofproto.c index 0d7b9756..bc99ea20 100644 --- a/secchan/ofproto.c +++ b/secchan/ofproto.c @@ -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);