Fix the Load() memory leak

I adjusted the patch in https://rt.cpan.org/Ticket/Display.html?id=46172 for the latest version. I'm processing a lot of YAML files in one goal and this makes a difference in a couple orders of magnitude in the memory footprint.