The following program using the freetype package leaks memory: https://play.golang.org/p/I90PYZUngVu
The first two cycles have no problems but starting with the third cycle there is in an abnormal increase of CPU and memory usage. At the fourth cycle on my system the program is terminated by the OOM killer. I looked at the NewFace implementation ( https://github.com/golang/freetype/blob/master/truetype/face.go#L179) but I don't understand why memory is leaked. The original program is https://git.sr.ht/~mendelmaleh/dummy/tree/master/cmd/dummy Thanks Manlio -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/680c0031-65a0-4695-a1eb-5bcd18b39b2e%40googlegroups.com.