Skip to content

Commit

Permalink
fix free in link_remove(). Closes clibs#3
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Oct 20, 2013
1 parent 14b2cea commit 279036c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/list.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ list_remove(list_t *self, list_node_t *node) {
node->next
? (node->next->prev = node->prev)
: (self->tail = node->prev);
if (self->free) self->free(node);
if (self->free) self->free(node->val);
LIST_FREE(node);
--self->len;
}

0 comments on commit 279036c

Please sign in to comment.