Commit 65f593e8 authored by Marek Vavrusa's avatar Marek Vavrusa

Resolved leak on ACL destroy.

parent 70d4d4a6
......@@ -150,8 +150,8 @@ void acl_delete(acl_t **acl)
}
/* Truncate rules. */
skip_destroy_list(&acl->rules, 0, free);
skip_destroy_list(&acl->rules_pref, 0, free);
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