From 4ed6de196767c79f52686355d364f5b3ecbd8308 Mon Sep 17 00:00:00 2001 From: Carl Johnsen Date: Mon, 23 Mar 2026 06:53:42 +0100 Subject: [PATCH] Moved buffer allocation outside of while loop in SpillCollector --- .../Library/Main/Operation/Backup/SpillCollectorProcess.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Duplicati/Library/Main/Operation/Backup/SpillCollectorProcess.cs b/Duplicati/Library/Main/Operation/Backup/SpillCollectorProcess.cs index e5b2bf1f4..8f816ad8c 100644 --- a/Duplicati/Library/Main/Operation/Backup/SpillCollectorProcess.cs +++ b/Duplicati/Library/Main/Operation/Backup/SpillCollectorProcess.cs @@ -95,6 +95,7 @@ namespace Duplicati.Library.Main.Operation.Backup return target; } + var buffer = new byte[options.Blocksize]; while (lst.Count > 1) { @@ -110,8 +111,6 @@ namespace Duplicati.Library.Main.Operation.Backup // Remove it from the list of active operations lst.RemoveAt(0); - var buffer = new byte[options.Blocksize]; - using (var rd = new BlockVolumeReader(options.CompressionModule, source.BlockVolume.LocalFilename, options)) { // Make sure we process the blocklisthashes, even if the blockvolume is empty