Fix memory leak introduced by r201010.