Fix memory leak in Python 3.2