From 6bd91936ff9d525d3e1dee8f6d97d887072cb480 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 20 Oct 2008 23:24:35 +0000 Subject: [PATCH] remove debug-code which zero-filled some structures before free()ing them --- lib/hash.c | 2 -- lib/llist.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/lib/hash.c b/lib/hash.c index 909e356..e62a79e 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -44,7 +44,6 @@ hash_element_dtor(void *user, void *element) h->dtor(e->ptr); - memset(e, 0, sizeof(struct curl_hash_element)); free(e); } @@ -272,7 +271,6 @@ Curl_hash_destroy(struct curl_hash *h) Curl_hash_clean(h); - memset(h, 0, sizeof(struct curl_hash)); free(h); } diff --git a/lib/llist.c b/lib/llist.c index 0d08321..4a41b80 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); } } -- 2.7.4