free memory after file read. Clears RAM