Fix a really slow memory leak (in master at least). Found by Ira Cooper <ira@wakeful...