ofproto: Avoid memory leak in classifier on destruction.
authorBen Pfaff <blp@nicira.com>
Tue, 5 Apr 2011 22:58:06 +0000 (15:58 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 19 Apr 2011 16:32:18 +0000 (09:32 -0700)
commit142e1f5c7e3b607ccf82d3989477e93adc59c8b6
treea795550632903792feeca4c9aef7af39607d4fba
parent244b2160105d5ca7c5160f75680dc2ed01134c36
ofproto: Avoid memory leak in classifier on destruction.

ofproto_flush_flows() flushes the flow table but then it reintroduces flows
required by fail-open or in-band.  These are then leaked when the
classifier is destroyed a little later.

This fixes the problem by not reintroducing these flows when ofproto is
being destroyed.
ofproto/ofproto.c