Simple fix, I mixed up the list next pointer.
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -129,6 +129,7 @@ list_remove (list_t list, void *item) | ... | @@ -129,6 +129,7 @@ list_remove (list_t list, void *item) |
129 | if ((int)current->item == (int)item) | 129 | if ((int)current->item == (int)item) |
130 | { | 130 | { |
131 | previous->next = current->next; | 131 | previous->next = current->next; |
132 | current->next->prev = previous; | ||
132 | free (current); | 133 | free (current); |
133 | list->count--; | 134 | list->count--; |
134 | RWLOCK_UNLOCK (&(list->rwlock)); | 135 | RWLOCK_UNLOCK (&(list->rwlock)); | ... | ... |
-
Please register or sign in to post a comment