Plug a memory leak in the new ^P implementation.

This was entirely my fault.