private data structures for memory make things simpler
removed mem leak
rework of jnx_memory system to be completely independent of the library
rework of jnx_memory system to be completely independent of the library
second pass memory management