Clean-up of memory buffer and object ownership model in MCJIT