Fixes bug where memory was free()d despite having never been allocated.
This occurred when using the original (non-parallel) framework.