diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2023-10-25 21:24:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 21:24:24 +0200 |
commit | ab3f6c1bac04ea43541d9abd5e7c21a67b0f6deb (patch) | |
tree | 14830db21625882479bd2bf4991e71d2dc153fee /modules/packages/hashed_buffer.go | |
parent | 46dd02702d29548c4de3e55842faa5694ef69b8a (diff) | |
download | gitea-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.go | 2 |
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 { |