Another way into a memory leak, and the preparations for a fix for
it, but not the solution yet