Release memory when crawling files