aboutsummaryrefslogtreecommitdiff
path: root/lib/hash.c
AgeCommit message (Collapse)Author
2004-05-04improved the cleaning up of memory when we fail to resolve names due toDaniel Stenberg
out of memory (thanks to 'runtests.pl -t')
2004-01-07updated year in the copyright stringDaniel Stenberg
2003-12-15make sure that hash_add() has no allocated resources left in case itDaniel Stenberg
returns NULL
2003-09-14Jeff Pohlmeyer did some marvelous debugging to track this one down. We MUSTDaniel Stenberg
NOT free the existing hash entry when we try to add a new one that matches an existing entry. We now instead free the new one, and make the parent function use the old entry's struct instead.
2003-09-05Uses less macros. #ifdef'ed out unused functions. Edited slightly to beDaniel Stenberg
more in the same style as other curl source code. The only actual code change is an added check after a malloc() call.
2003-08-141. check allocsDaniel Stenberg
2. don't leave allocated memory behind when returning error
2003-06-26use CURLDEBUG instead of MALLOCDEBUG for preprocessor conditionsDaniel Stenberg
2003-01-29removed weirdo {{{ and }}} commentsDaniel Stenberg
removed emacs local-variables stuff
2003-01-16copyright year update in the source headerDaniel Stenberg
2002-11-05Curl_resolv() now returns a different struct, and it contains a referenceDaniel Stenberg
counter so that the caller needs to decrease that counter when done with the returned data. If compiled with MALLOCDEBUG I've added some extra checking that the counter is decreased before a handle is closed etc.
2002-09-03updated source code boilerplate/headerDaniel Stenberg
2002-04-27DNC cache prune crash removed, made the name spacing follow the generalDaniel Stenberg
rule: "Curl_" prefix for library-wide private symbols, "curl_" is for exported symbols.
2002-04-17Prune old hostcache entries with each call...Sterling Hughes
This can be optimized a tidbit, but this is a start.
2002-04-13Add protos and change return value of curl_hash_count....Sterling Hughes
2002-04-12Speed up the hash code considerably, removing a bunch of legacy crudSterling Hughes
2002-03-19copyright string (year) updateDaniel Stenberg
2002-02-17Philip Gladstone's 64-bit issues corrected.Daniel Stenberg
Reminder for the future: when we're using malloc() we MUST include <stdlib.h> as otherwise 64bit archs go bananas. Bug report #517687
2002-01-18I wish I could type. Anyway, this proved it is a good habit to put the NULLDaniel Stenberg
on the left side of comparisons...
2002-01-18added typecast for a malloc() return, and added check for NULLDaniel Stenberg
2002-01-07Make cach'ing work with threads now, there are now three cases:Sterling Hughes
- Use a global dns cache (via setting the tentatively named, CURLOPT_DNS_USE_GLOBAL_CACHE option to true) - Use a per-handle dns cache, by default - Use a pooled dns cache when in the "multi" interface
2002-01-03Sterling Hughes' provided initial DNS cache source code.Daniel Stenberg