Commit 70d4d4a6 authored by Marek Vavrusa's avatar Marek Vavrusa

Resolved leak on ACL destroy.

parent b8380204
......@@ -150,9 +150,8 @@ void acl_delete(acl_t **acl)
}
/* Truncate rules. */
if (acl_truncate(*acl) != ACL_ACCEPT) {
return;
}
skip_destroy_list(&acl->rules, 0, free);
skip_destroy_list(&acl->rules_pref, 0, free);
/* Free ACL. */
free(*acl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment