Release memory in cvode, kinsol and idasol.