aboutsummaryrefslogtreecommitdiffstats
path: root/modules/packages/hashed_buffer.go
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-10-25 21:24:24 +0200
committerGitHub <noreply@github.com>2023-10-25 21:24:24 +0200
commitab3f6c1bac04ea43541d9abd5e7c21a67b0f6deb (patch)
tree14830db21625882479bd2bf4991e71d2dc153fee /modules/packages/hashed_buffer.go
parent46dd02702d29548c4de3e55842faa5694ef69b8a (diff)
downloadgitea-ab3f6c1bac04ea43541d9abd5e7c21a67b0f6deb.tar.gz
gitea-ab3f6c1bac04ea43541d9abd5e7c21a67b0f6deb.zip
Close all hashed buffers (#27787)
Add missing `.Close()` calls. The current code does not delete the temporary files if the data grows over 32mb.
Diffstat (limited to 'modules/packages/hashed_buffer.go')
-rw-r--r--modules/packages/hashed_buffer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/packages/hashed_buffer.go b/modules/packages/hashed_buffer.go
index 017ddf1c8f..4ab45edcec 100644
--- a/modules/packages/hashed_buffer.go
+++ b/modules/packages/hashed_buffer.go
@@ -32,7 +32,7 @@ func NewHashedBuffer() (*HashedBuffer, error) {
return NewHashedBufferWithSize(DefaultMemorySize)
}
-// NewHashedBuffer creates a hashed buffer with a specific memory size
+// NewHashedBufferWithSize creates a hashed buffer with a specific memory size
func NewHashedBufferWithSize(maxMemorySize int) (*HashedBuffer, error) {
b, err := filebuffer.New(maxMemorySize)
if err != nil {