This plugs a memory leak

See xt/memory-cycle.t for verification.