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