[PATCH 2/2] maple_tree: Fix a potential memory leak, OOB access, or other unpredictable bug