Fortunately, I only needed the memory to be released so that a new set of a million hashes can be generated for the next test in the 'TestSequence', whose single instance will exist throughout a sequence of tests on different data to be iteratively loaded into the hash of array and replaced by different data for the next test run. So both these answers tell me what I wanted to hear -- thanks!