As noted by
Anonymous Monk above the memory is freed when the program exits.
Why do you think a hash is different with respect to memory handling than other variables like a scalar or an array?
Do you run into memory issues with your program?
Just wondering
cheers, si_lence