diff --git a/src/acl.c b/src/acl.c index 674d3921..cc5f17cb 100644 --- a/src/acl.c +++ b/src/acl.c @@ -554,6 +554,7 @@ int ACLSetUser(user *u, const char *op, ssize_t oplen) { /* Check if the command exists. We can't check the * subcommand to see if it is valid. */ if (ACLLookupCommand(copy) == NULL) { + zfree(copy); errno = ENOENT; return C_ERR; }