remote: release strbuf after use in migrate_file()