- for (lp = *list; lp->next; lp = lp->next)
- {
- if (lp->next->item == item) /* the next one is it */
- {
- lp1 = lp->next; /* this one will need to be freed */
- lp->next = lp->next->next; /* take out of list */
- return;
- }
+ for (lp = *list; lp->next; lp = lp->next) {
+ if (lp->next->item == item) { /* the next one is it */
+ lp1 = lp->next; /* this one will need to be freed */
+ lp->next = lp->next->next; /* take out of list */
+ Safe_free (lp1);
+ return;