From 3c4715b8a488548fc5b474ae878fc87739ad2a1b Mon Sep 17 00:00:00 2001 From: Abhishek Pandey Date: Wed, 12 Jul 2023 22:26:57 -0700 Subject: [PATCH] free map --- src/internal/m365/collection/drive/collection.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/internal/m365/collection/drive/collection.go b/src/internal/m365/collection/drive/collection.go index 60614280a..4d3a06063 100644 --- a/src/internal/m365/collection/drive/collection.go +++ b/src/internal/m365/collection/drive/collection.go @@ -467,6 +467,8 @@ func (oc *Collection) populateItems(ctx context.Context, errs *fault.Bus) { wg.Wait() + // free up memory + oc.driveItems = nil oc.reportAsCompleted(ctx, int(stats.itemsFound), int(stats.itemsRead), stats.byteCount) }