HRCPP-45 Clean up memory allocations in pool (and elsewhere)