Fix several memory leaks caused by modifying a slice length without removing the elements from the backing array.
Fix several memory leaks caused by modifying a slice length without
removing the elements from the backing array.

jackc/puddle