diff options
author | Yang Tse <yangsita@gmail.com> | 2008-10-20 23:24:35 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-10-20 23:24:35 +0000 |
commit | 6bd91936ff9d525d3e1dee8f6d97d887072cb480 (patch) | |
tree | d47cfce287fd1db8a84e6852d043966374dd949b /lib/llist.c | |
parent | 035a2e5479c312df64f7db0e98089e1f89f5f78e (diff) | |
download | curl-6bd91936ff9d525d3e1dee8f6d97d887072cb480.tar.gz |
remove debug-code which zero-filled some structures before free()ing them
Diffstat (limited to 'lib/llist.c')
-rw-r--r-- | lib/llist.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/llist.c b/lib/llist.c index 0d08321c6..4a41b80c1 100644 --- a/lib/llist.c +++ b/lib/llist.c @@ -114,7 +114,6 @@ Curl_llist_remove(struct curl_llist *list, struct curl_llist_element *e, list->dtor(user, e->ptr); - memset(e, 0, sizeof(struct curl_llist_element)); free(e); --list->size; @@ -128,7 +127,6 @@ Curl_llist_destroy(struct curl_llist *list, void *user) while(list->size > 0) Curl_llist_remove(list, list->tail, user); - memset(list, 0, sizeof(struct curl_llist)); free(list); } } |