in reply to Memory Leak

Just a hint:

enclose your code in <code>/</code>-tags

it will be more readable and better to cut out of the node.

In your node the [\%Hash] is seen as \%Hash, which lead clintp down the wrong way.