Free data buffer when file buffer could not be retrieved