From: Michael Orlitzky Date: Tue, 11 Dec 2018 05:16:21 +0000 (-0500) Subject: stc/libadacl.c: use a "cleanup" routine in acl_update_entry(). X-Git-Tag: v0.4.2~4 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=62844f5f2d280403511c4741226b39843955c08c;hp=62844f5f2d280403511c4741226b39843955c08c;p=apply-default-acl.git stc/libadacl.c: use a "cleanup" routine in acl_update_entry(). 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. ---