Fix a memory leak in ACL inheritance.
Improve the readability of the user shell folder ACL patch.