I am writing a game in Go. I was told my code was leaking memory. What would be the right approach to pinpoint the cause of the leaks?

I know **pprof** exists but as far as I know it can be used when your app uses the http package and my app is a simple game and it does not make use of any netowrk connectivity.