So, in other words, if I do not release the memory of the C.CString, the Go program may be crashed caused of the OOM, right? This is not what I expect, so, I have to release the C.CString on Go side, and fix this problem(if release the C.CString immediately after invoked the C function, the C func returns errors) in C code side?
在 2017年8月15日星期二 UTC+8下午1:44:16,Tamás Gulácsi写道: > > No, not releasing memory means only used memory. Crash your program only > if the OOM killer is invoked (too much unreleased memory). -- 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. For more options, visit https://groups.google.com/d/optout.