acl: Fix allocation related issues.