Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2022-06-25 23:25:41 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2022-07-04 16:32:17 +0300
commit9c299c70e8b328b512281166bb9e9668ea76ea65 (patch)
tree607b2f1b522eb6c3475bf5ee9ea716c467cc3cab /internal/vfs
parentece2a232bafa09a1f037de514899003cc5b364d2 (diff)
Null out zip reader after reading archive
Diffstat (limited to 'internal/vfs')
-rw-r--r--internal/vfs/zip/archive.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/vfs/zip/archive.go b/internal/vfs/zip/archive.go
index 9f01794b..432f92d1 100644
--- a/internal/vfs/zip/archive.go
+++ b/internal/vfs/zip/archive.go
@@ -165,7 +165,7 @@ func (a *zipArchive) readArchive(url string) {
}
// recycle memory
- a.archive.File = nil
+ a.archive = nil
fileCount := float64(len(a.files))
metrics.ZipOpened.WithLabelValues("ok").Inc()