Last I looked you need a garbage collector to deallocate at which point you might as well use Java which is actually designed for that use case.