Fix leak discovered in test_new by Michael Hudson.

Will backport to 2.3.1
1 file changed