Fix for an egregious memory leak

The Optimizer was leaking memory on every call to SetDWI. This
was fatal on full-size volumes.