Fixed issue with fread using Valgrind.