Fix a memory leak triggered by 404s.