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>
Fri, 29 Apr 2011 21:31:59 +0000 (14:31 -0700)
commit7126d93814da306e4f1a7ce7ff3e91eb3fb3a64c
tree366732f04192db36d389ca18250d33a195bf4656
parent101c55a1af7998a009a5c88c20e30837bc1a9765
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