]> gitweb.michael.orlitzky.com - apply-default-acl.git/commitdiff
stc/libadacl.c: use a "cleanup" routine in acl_update_entry().
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 11 Dec 2018 05:16:21 +0000 (00:16 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 11 Dec 2018 20:14:29 +0000 (15:14 -0500)
This is in preparation for comparing the qualifiers of the given and
existing ACL entries. Since acl_get_qualifier() can allocate memory,
we need to be sure that memory gets freed, even if an error occurs. A
"cleanup" routine and liberal use of "goto" is the standard pattern
throughout the rest of the library to deal with that problem.


No differences found