On Sat, 9 Feb 2008, Adam Goode wrote:
Hi,Am I missing something or are you forgetting to update a ->next pointer somewhere? (It looks like you are leaving the previous next pointing to the freed structure.) The old code, while uglier, I think handled that case.
I do update it. The position pointer is either the list head (first iteration) or the previous next pointer (subsequent iterations), so the statement "*position = (*position)->next" does update the next pointer.
/Viktor
