A memory fix in LinearSolver<Scalar>::LinearSolver().