Remove some memory leaks in the corrector.  There is still some memory leaks that are proving impossible to fix.