diff options
author | Yang Tse <yangsita@gmail.com> | 2008-10-19 20:17:16 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-10-19 20:17:16 +0000 |
commit | 5779283a52a1369cccbe1a1d314e2ec8ac949e0f (patch) | |
tree | a3abefd48a641c96e3686bf05c9615adfc80f39e /lib/llist.c | |
parent | 80d0dcc9a3124dcecc9d1f7296f2ac429bc7d704 (diff) | |
download | curl-5779283a52a1369cccbe1a1d314e2ec8ac949e0f.tar.gz |
attempt to fix or allow further detection of an elusive icc SIGSEGV
Diffstat (limited to 'lib/llist.c')
-rw-r--r-- | lib/llist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/llist.c b/lib/llist.c index cd9edad63..0d08321c6 100644 --- a/lib/llist.c +++ b/lib/llist.c @@ -113,6 +113,8 @@ 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; @@ -126,6 +128,7 @@ 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); } } |