diff --git a/src/solver/msxqual.c b/src/solver/msxqual.c index aea02e3..410ed5d 100644 --- a/src/solver/msxqual.c +++ b/src/solver/msxqual.c @@ -1457,7 +1457,8 @@ void evalnodeinflow(int k, double tstep, double* volin, double* massin) MSX.FirstSeg[k] = seg->prev; MSX.Link[k].nsegs--; if (MSX.FirstSeg[k] == NULL) MSX.LastSeg[k] = NULL; - + else MSX.FirstSeg[k]->next = NULL; //03/19/2024 added to break the linked segments + // ... recycle the used up segment seg->prev = MSX.FreeSeg; MSX.FreeSeg = seg;