Skip to content

Commit

Permalink
set to NULL after freeing
Browse files Browse the repository at this point in the history
  • Loading branch information
Yazhong Liu committed Mar 17, 2014
1 parent efbdfe8 commit d76d7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/list_iterator.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

//
// iterator.c
//
Expand Down Expand Up @@ -58,4 +57,5 @@ list_iterator_next(list_iterator_t *self) {
void
list_iterator_destroy(list_iterator_t *self) {
LIST_FREE(self);
self = NULL;
}

0 comments on commit d76d7f2

Please sign in to comment.