Skip to content

Commit

Permalink
解决内存泄漏
Browse files Browse the repository at this point in the history
  • Loading branch information
jinshaohui committed Oct 31, 2018
1 parent b72c723 commit 289d2b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions c-cpp/17_skiplist/skiplist_c/skiplist.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ void skip_list_destory(skiplist * list)
free(tmp);
}

free(list->head);
free(list);
return;
}
Expand Down

0 comments on commit 289d2b3

Please sign in to comment.