Fix a tiny test-only leak, found by LSan.