Fix a memory leak in the previous commit.