Closed JianleiZhang closed 2 weeks ago
maybe need this code after os.MkdirTemp.
defer os.RemoveAll(dir)
Where is the memory leak? All temp files are already deleted or you will see them in TMP.
maybe need this code after os.MkdirTemp.