oracleobjectstorage, sftp: eliminate unnecessary heap allocation

Move the declaration location of variables to eliminate heap
allocation which may make rclone faster and reduce memory usage slightly.

Fixes #9078
This commit is contained in:
Qingwei Li authored and GitHub committed 2026-01-09 16:10:02 +00:00
1 parent a64a8aad0e
commit 530a901de3
3 files changed
+7 -8

No files matched your search

+1 -1
View File
@@ -291,7 +291,7 @@ func (c *conn) handleChannel(newChannel ssh.NewChannel) {
}
}
fs.Debugf(c.what, " - accepted: %v\n", ok)
err = req.Reply(ok, reply)
err := req.Reply(ok, reply)
if err != nil {
fs.Errorf(c.what, "Failed to Reply to request: %v", err)
return