Forgot to free error and file.