Permalink
Browse files

Fixed List_remove() node freeing

  • Loading branch information...
tj committed Aug 23, 2010
1 parent 7d5d478 commit b899c05e2d320f2c773f9039ee64f485b496795f
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/list.c
View
@@ -148,5 +148,6 @@ List_remove(List *self, ListNode *node) {
? (node->next->prev = node->prev)
: (self->tail = node->prev);
if (self->free) self->free(node);
+ LIST_FREE(node);
--self->len;
}

0 comments on commit b899c05

Please sign in to comment.