aboutsummaryrefslogtreecommitdiff
path: root/lib/memdebug.h
AgeCommit message (Collapse)Author
2011-09-03fix a bunch of MSVC compiler warningsYang Tse
2011-09-02MemoryTracking: fix logging of free() calls done where Curl_safefree is calledYang Tse
Just internal stuff... Curl_safefree is now a macro defined in memdebug.h instead of a function prototyped in url.h and implemented in url.c, so inclusion of url.h is no longer required in order to simply use Curl_safefree. Provide definition of macro WHILE_FALSE in setup_once.h in order to allow other macros such as DEBUGF and DEBUGASSERT, and code using it, to compile without 'conditional expression is constant' warnings. The WHILE_FALSE stuff fixes 150+ MSVC compiler warnings.
2011-08-20MemoryTracking: adjust initialization callingYang Tse
Calling of curl_memdebug() was still done with a pending free()
2011-07-29socketpair() usage tracking to allow fd leak detectionYang Tse
2011-07-26stdio.h, stdlib.h, string.h, stdarg.h and ctype.h inclusion done in setup_once.hYang Tse
2011-04-27source cleanup: unify look, style and indent levelsDaniel Stenberg
By the use of a the new lib/checksrc.pl script that checks that our basic source style rules are followed.
2010-03-24remove the CVSish $Id$ linesDaniel Stenberg
2010-02-22fix socket data type and logging format in debug tracking socket functionsYang Tse
2010-01-19update copyright year noticeYang Tse
2010-01-18Constantine Sapuntzakis enhancements to make memory tracking log file writingYang Tse
of messages atomic, on systems where an fwrite of a memory buffer is atomic.
2009-10-29Fix compiler warning: control reaches end of non-void functionYang Tse
2009-10-28Since the NSS lib closes the socket the memory tracking system wrongly gets aDaniel Stenberg
false positive on a leaked socket, so this introduces a way to tell the system that the socket is indeed closed without explicitly closing it!
2009-07-15fixed typo.Gunter Knauf
2009-06-19sclose() function-like macro definition used to close a socket,Yang Tse
now solely based on HAVE_CLOSESOCKET and HAVE_CLOSESOCKET_CAMEL config file preprocessor definitions.
2009-04-21Moved potential inclusion of system's malloc.h and memory.h header files toYang Tse
setup_once.h. Inclusion of each header file is based on the definition of NEED_MALLOC_H and NEED_MEMORY_H respectively.
2008-10-30Move curl_dofreeaddrinfo() and curl_dofreeaddrinfo()Yang Tse
implementation from lib/hostip6.c to lib/curl_addrinfo.c and prototypes from lib/hostip.h to lib/curl_addrinfo.h
2008-09-13Disable tracking of fdopen() calls in the low-level memory leak trackingYang Tse
code when fdopen() is not available, to avoid compiler error.
2007-06-28Using fdopen() is a more correct way to implement the CURLOPT_NEW_FILE_PREMSJames Housley
file.c, but the debug interface was missing. This adds the routines needed to make the memory debuging work for fdopen().
2006-10-27Update copyright year, since the file has been modifiedYang Tse
2006-07-04Test HAVE_GETNAMEINFO definition before using GETNAMEINFO_XXX definitions.Yang Tse
2005-11-13Yang Tse fixed compiler warningsDaniel Stenberg
2005-06-30enable memory debugging on tru64 with ipv6 support by doing a little differentDaniel Stenberg
defining, since the system headers themselves redefine getaddrinfo
2005-03-31Updated the copyright year since changes have been this year.Daniel Stenberg
2004-11-09Changes for removing libcurl.def file on Win32.Gisle Vanem
Added "CURL_EXTERN" to memdebug.h functions. Cleaned up Makefile.vc6.
2004-04-26Major hostip.c cleanup and split into multiple files and easier #ifdefDaniel Stenberg
usage.
2004-02-26Gisle Vanem's added support calloc()-debugging and outputting mode forDaniel Stenberg
fopen() as well.
2004-02-18Made curl_accept() take a 'void *' instead of 'socklen_t *' in the 3rdDaniel Stenberg
argument to also not force the casual includer to know about the socklen_t type.
2004-02-18Modified curl_accept() to take a 'void *' in the 2nd argument instead ofDaniel Stenberg
sockaddr *. This has the added benefit that source files that include memdebug.h doesn't have to know about "sockaddr".
2004-02-16support closesocket() for closing sockets as well, as then we can use thisDaniel Stenberg
code fine on ares!
2004-02-02undef accept before defining it, since AIX 5.2 has it as a define!Daniel Stenberg
2004-01-29Dan Fandrich's cleanup patch to make pedantic compiler options cause lessDaniel Stenberg
warnings. Minor edits by me.
2004-01-07updated year in the copyright stringDaniel Stenberg
2003-10-14Gisle Vanem's IPv6-on-Windows patch applied!Daniel Stenberg
2003-08-14allow out-of-memory testing by setting a limit. That number of memoryDaniel Stenberg
allocation calls will succeed, the following will return NULL!
2003-06-26use CURLDEBUGDaniel Stenberg
2003-03-15Gisle Vanem's fix to get this working nicely on windowsDaniel Stenberg
2003-01-16copyright year update in the source headerDaniel Stenberg
2002-10-28prevent compiler warningsDaniel Stenberg
2002-09-03updated source code boilerplate/headerDaniel Stenberg
2002-03-19copyright string (year) updateDaniel Stenberg
2001-12-17Götz Babin-Ebell's OpenSSL ENGINE patchDaniel Stenberg
2001-10-04getaddrinfo() cleanupsDaniel Stenberg
2001-08-14curl_memdebug takes a const argument nowDaniel Stenberg
2001-08-14const-ified lots of function argumentsDaniel Stenberg
2001-08-06Nico's VMS adjustmentDaniel Stenberg
2001-03-09uses socklen_t nowDaniel Stenberg
2001-03-02strdup() takes a const char * nowDaniel Stenberg
2000-12-19Added fopen() and fclose() leak trackingDaniel Stenberg
2000-12-18fixed accept() for memory debuggingDaniel Stenberg
2000-12-14added socket() / sclose() checks to the memdebug systemDaniel Stenberg