You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The previous implementation had a serious flaw: the loop used **start as
iteration variable and changed it, so before each return we would have
to make sure it was set exactly right. Now we use a local iteration
variable and only touch **start and **last if necessary.
Additionally the memory of the deleted element is freed now. This was
not done before, but after removing the item from the list, there was no
way to ever release this memory anymore: memory leak!
The new implementation was tested with unit tests in a personal branch.
Fixesrafaelsteil#23.
Tested-by: Alexander Dahl <post@lespocky.de>
The previous implementation had a serious flaw: the loop used **start as
iteration variable and changed it, so before each return we would have
to make sure it was set exactly right. Now we use a local iteration
variable and only touch **start and **last if necessary.
Additionally the memory of the deleted element is freed now. This was
not done before, but after removing the item from the list, there was no
way to ever release this memory anymore: memory leak!
The new implementation was tested with unit tests in a personal branch.
Fixesrafaelsteil#23.
Tested-by: Alexander Dahl <post@lespocky.de>
The fix for #20 in a4f2e93 introduced a regression. The list pointer (
**start
) is not updated correctly anymore.The text was updated successfully, but these errors were encountered: