return posix_fget_nt_acl(fsp, security_info,
mem_ctx, ppdesc);
}
- if (result==False)
+ if (result==False) {
+ TALLOC_FREE(frame);
return NT_STATUS_ACCESS_DENIED;
+ }
status = smb_fget_nt_acl_nfs4(fsp, security_info, ppdesc,
mem_ctx, pacl);
}
/* GPFS ACL was not read, something wrong happened, error code is set in errno */
+ TALLOC_FREE(frame);
return map_nt_error_from_unix(errno);
}
DEBUG(10, ("gpfsacl_emu_chmod invoked for %s mode %o\n", path, mode));
result = gpfs_get_nfs4_acl(frame, path, &pacl);
- if (result)
+ if (result) {
TALLOC_FREE(frame);
return result;
+ }
if (mode & ~(S_IRWXU | S_IRWXG | S_IRWXO)) {
DEBUG(2, ("WARNING: cutting extra mode bits %o on %s\n", mode, path));