From: Michael Orlitzky Date: Fri, 23 Feb 2018 21:00:03 +0000 (-0500) Subject: Add missing jump-to-cleanup in one error scenario. X-Git-Tag: v0.1.0~34 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=c8b0a4c1f78da7a966a3c8f7806631b0da1eea55;p=apply-default-acl.git Add missing jump-to-cleanup in one error scenario. --- diff --git a/src/apply-default-acl.c b/src/apply-default-acl.c index 54cf66a..7058e62 100644 --- a/src/apply-default-acl.c +++ b/src/apply-default-acl.c @@ -761,7 +761,8 @@ int apply_default_acl(const char* path, bool no_exec_mask) { acl_t acl = acl_get_file(path, ACL_TYPE_ACCESS); if (acl == (acl_t)NULL) { perror("apply_default_acl (acl_get_file)"); - return ACL_ERROR; + result = ACL_ERROR; + goto cleanup; } /* If it's a directory, inherit the parent's default. */