fixed memory-free-on-nonheap