From 4250637e7d39ae8b663251db995d10b1612592ca Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 4 May 2004 13:40:30 +0000 Subject: improved the cleaning up of memory when we fail to resolve names due to out of memory (thanks to 'runtests.pl -t') --- lib/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/hash.c') 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 */ } -- cgit v1.2.3