summaryrefslogtreecommitdiff
path: root/lib/hash.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-04 13:40:30 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-04 13:40:30 +0000
commit4250637e7d39ae8b663251db995d10b1612592ca (patch)
tree64f0e75edbf31f8080b04949ed318e80628bfd2e /lib/hash.c
parent08d1da106ebe3817ce3aad083182fad4881a8d2a (diff)
downloadcurl-4250637e7d39ae8b663251db995d10b1612592ca.tar.gz
improved the cleaning up of memory when we fail to resolve names due to
out of memory (thanks to 'runtests.pl -t')
Diffstat (limited to 'lib/hash.c')
-rw-r--r--lib/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hash.c b/lib/hash.c
index 6769faacf..619f2fb1b 100644
--- a/lib/hash.c
+++ b/lib/hash.c
@@ -164,7 +164,7 @@ Curl_hash_add(curl_hash *h, char *key, size_t key_len, void *p)
/* couldn't insert it, destroy the 'he' element again */
hash_element_dtor(h, he);
}
- h->dtor(p); /* remove the NEW entry */
+
return NULL; /* failure */
}