fix leak of memory, clean history buffer after crawl webpage.