register on its first call. Subsequent calls reused the register so the leak didn't accumulate. Fixes PR 1275.