This fixes a memory leak in the allocation of doubles, but causes 4 tests to fail