Cleaning up support for allocating/deallocating from the service.  More
valgrind issues addressed related to leaks.