Correct the misuse of dynamically allocated C++ memory so that using the uv_asyc() callback API doesn't leak the pointer data being passed through.