Fixed -Werror=unused-but-set-variable in libqpol/policy_extend.c

This commit is contained in:
Fernand Lone-Sang 2015-01-21 18:05:25 +01:00
parent 6a8dbe88a5
commit bc081bbccd

View File

@ -781,7 +781,7 @@ static int qpol_syn_rule_table_insert_entry(qpol_policy_t * policy,
table_node->next = table->buckets[hash];
table->buckets[hash] = table_node;
}
return 0;
return error;
}
/**
@ -868,9 +868,9 @@ static int qpol_syn_rule_table_insert_sepol_avrule(qpol_policy_t * policy, qpol_
ebitmap_destroy(&source_types2);
ebitmap_destroy(&target_types);
ebitmap_destroy(&target_types2);
return 0;
return error;
err:
err:
ebitmap_destroy(&source_types);
ebitmap_destroy(&source_types2);
ebitmap_destroy(&target_types);