Hello,
After running expect a couple of thousand times it seems there's a memory leak that occurs. I think I've traced it down to the referenced lines and reading through the NewTicker comments they recommend:
// The duration d must be greater than zero; if not, NewTicker will panic.
// Stop the ticker to release associated resources.
I couldn't find the code to stop the Ticker within expect.go. Is there a reason there's no Stop()?
https://github.com/google/goexpect/blob/028ffe4adb97de831e58069dd82ed5ac85222e16/expect.go#L621
Hello, After running expect a couple of thousand times it seems there's a memory leak that occurs. I think I've traced it down to the referenced lines and reading through the NewTicker comments they recommend:
I couldn't find the code to stop the Ticker within expect.go. Is there a reason there's no Stop()?
Heap pprof profile without Stop
Heap pprof profile with Stop
Example code: https://github.com/marek5050/GoPprof/blob/master/src/github.com/marek5050/GoProfiling/cmd/lser/main.go