summaryrefslogtreecommitdiff
path: root/lib/hash.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-20 23:24:35 +0000
committerYang Tse <yangsita@gmail.com>2008-10-20 23:24:35 +0000
commit6bd91936ff9d525d3e1dee8f6d97d887072cb480 (patch)
treed47cfce287fd1db8a84e6852d043966374dd949b /lib/hash.c
parent035a2e5479c312df64f7db0e98089e1f89f5f78e (diff)
downloadcurl-6bd91936ff9d525d3e1dee8f6d97d887072cb480.tar.gz
remove debug-code which zero-filled some structures before free()ing them
Diffstat (limited to 'lib/hash.c')
-rw-r--r--lib/hash.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/hash.c b/lib/hash.c
index 909e3563b..e62a79e03 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);
}