X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fofproto.c;fp=ofproto%2Fofproto.c;h=884e63ef8377b987fb4760736385a3b94fc328a4;hb=8917f72cbb04fb32dc29f93475bcd2de3011d442;hp=45621e9626942ff625888b867dbe040e1db4da7a;hpb=6a36690c200a08dfbd5648269e3e1ab837d1b726;p=sliver-openvswitch.git diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 45621e962..884e63ef8 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -2615,7 +2615,6 @@ ofproto_rule_destroy__(struct rule *rule) cls_rule_destroy(CONST_CAST(struct cls_rule *, &rule->cr)); rule_actions_unref(rule->actions); ovs_mutex_destroy(&rule->mutex); - ovs_refcount_destroy(&rule->ref_count); rule->ofproto->ofproto_class->rule_dealloc(rule); } @@ -2656,7 +2655,6 @@ void rule_actions_unref(struct rule_actions *actions) { if (actions && ovs_refcount_unref(&actions->ref_count) == 1) { - ovs_refcount_destroy(&actions->ref_count); free(actions->ofpacts); free(actions); } @@ -6705,7 +6703,6 @@ oftable_destroy(struct oftable *table) oftable_disable_eviction(table); classifier_destroy(&table->cls); free(table->name); - atomic_destroy(&table->config); } /* Changes the name of 'table' to 'name'. If 'name' is NULL or the empty