Skip to content

Commit

Permalink
Fix vips memory leak (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash authored Jan 11, 2025
1 parent 372f8fa commit 7a97232
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/image/resize_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
)

func Resize(reader io.Reader, maxSize int) ([]byte, error) {
defer vips.ShutdownThread()

image, err := vips.NewImageFromReader(reader)
if err != nil {
return nil, err
Expand Down

0 comments on commit 7a97232

Please sign in to comment.