Memory management tools for cgo.