Re:Java is back? Programming language trends for 2345 teams
by kasey_junk on Monday April 21, 2014 @06:36PM
(#7624424)
Which again is very similar to JNI. I'm genuinely curious as to how Go's FFI differs from Java's to make that a distinguishing characteristic between the 2 languages.
If you allocate memory using C.malloc you must use C.free otherwise you will leak memory.