summaryrefslogtreecommitdiffstats
path: root/modules/packages/hashed_buffer.go
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-10-26 04:24:25 +0800
committerGitHub <noreply@github.com>2023-10-25 22:24:25 +0200
commit25acbfed36b96c3e3c2b2101dae8aaecb7e60d86 (patch)
treee6e36113f8078b9a7c06a0fd2fea8aaa8e69247f /modules/packages/hashed_buffer.go
parent9dd8f347077d2ca6c48d4aa8178ee40628954d89 (diff)
downloadgitea-25acbfed36b96c3e3c2b2101dae8aaecb7e60d86.tar.gz
gitea-25acbfed36b96c3e3c2b2101dae8aaecb7e60d86.zip
Close all hashed buffers (#27787) (#27790)
Backport #27787 by @KN4CK3R Add missing `.Close()` calls. The current code does not delete the temporary files if the data grows over 32mb. Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
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 {