Fix a memory leak that was introduced in commit
834fe5cb997b (ofproto:
Additional simplifications.). We used to unref the flow
asynchronously, but forgot to do it when the support for asynchronous
operations was removed.
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
learned_cookies_dec(ofproto, rule_get_actions(rule),
&dead_cookies);
+
+ ofproto_rule_unref(rule);
}
learned_cookies_flush(ofproto, &dead_cookies);
ofmonitor_flush(ofproto->connmgr);