Fixed memory leak in multi-shift CG.