Currently, we are calling guarded_list_destroy()
to destroy a mutex and then go ahead and use it through
delete_group
->delete_group__
->handle_flow_mod__
->run_rule_executes
->guarded_list_pop_all
The group related unit tests cause ovs-vswitchd to crash
because of this (on windows).
Calling guarded_list_destroy() after delete_group() solves the
problem.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ovs_assert(list_is_empty(&ofproto->pending));
destroy_rule_executes(ofproto);
- guarded_list_destroy(&ofproto->rule_executes);
-
delete_group(ofproto, OFPG_ALL);
+
+ guarded_list_destroy(&ofproto->rule_executes);
ovs_rwlock_destroy(&ofproto->groups_rwlock);
hmap_destroy(&ofproto->groups);