"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
compress: fix memory leak - fixes #6013
Nick Craig-Woode0fbca02d4c2
diff --git a/backend/compress/compress.go b/backend/compress/compress.goindex fbd99ac9f..db90dca25 100644--- a/backend/compress/compress.go+++ b/backend/compress/compress.go@@ -401,6 +401,10 @@ func isCompressible(r io.Reader) (bool, error) {if err != nil {return false, err}+ err = w.Close()+ if err != nil {+ return false, err+ }ratio := float64(n) / float64(b.Len())return ratio > minCompressionRatio, nil}