Fix leak discovered in test_new by Michael Hudson.
Fix leak discovered in test_new by Michael Hudson.

Will backport to 2.3.1

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator