Fix image memory issue (#935)

* Return slim images from mutations
* Fix potential memory leaks
This commit is contained in:
WithoutPants
2020-11-10 20:19:13 +11:00
committed by GitHub
parent ceb888958e
commit beb84b8e94
3 changed files with 9 additions and 3 deletions

View File

@@ -67,6 +67,7 @@ func walkGalleryZip(path string, walkFunc func(file *zip.File) error) error {
if err != nil {
return err
}
defer readCloser.Close()
for _, file := range readCloser.File {
if file.FileInfo().IsDir() {