curl/lib
2003-08-14 15:02:25 +00:00
..
.cvsignore
arpa_telnet.h
base64.c
base64.h
ca-bundle.crt
config-mac.h
config-riscos.h
config-vms.h
config-win32.h
config.dj
connect.c bindlocal works for Windows! 2003-08-11 23:15:13 +00:00
connect.h
content_encoding.c
content_encoding.h
cookie.c Added some infof() calls, that require the data pointer so now several 2003-08-11 09:55:11 +00:00
cookie.h the new cookie functions that require 'data' passed in 2003-08-11 09:56:06 +00:00
curllib.dsp Juan F. Codagnone's fixes to build properly on Windows again 2003-07-23 08:21:21 +00:00
curllib.dsw
dict.c Removed #include <sys/resource.h>, as pointed out by Henry Bland we don't 2003-07-25 08:30:58 +00:00
dict.h
easy.c return failure when the host cache creation fails 2003-08-14 15:02:25 +00:00
escape.c
escape.h
file.c make sure the string is long enough 2003-08-08 17:56:47 +00:00
file.h
formdata.c
formdata.h
ftp.c don't claim the PASV connect is connected unless it *really* is! 2003-08-10 17:11:41 +00:00
ftp.h
getdate.c.cvs
getdate.h
getdate.y
getenv.c
getinfo.c Added support for CURLINFO_HTTP_CONNECTCODE 2003-08-11 23:15:41 +00:00
getinfo.h
getpass.c
getpass.h
hash.c
hash.h
hostip.c make it build without ares support 2003-08-06 15:26:02 +00:00
hostip.h ares awareness/usage/support added. If configure --enable-ares is used, we 2003-08-05 14:40:59 +00:00
http_chunks.c Mark Fletcher provided an excellent bug report that identified a problem 2003-08-03 22:18:14 +00:00
http_chunks.h
http_digest.c
http_digest.h
http_negotiate.c Daniel Kouril's fix to make the GSS-Negotiate work fine. 2003-07-23 11:28:59 +00:00
http_negotiate.h
http_ntlm.c added include "http.h" to prevent a warning 2003-08-11 14:55:30 +00:00
http_ntlm.h The NTLM functions now take a 'proxy' argument as well. 2003-07-22 09:58:57 +00:00
http.c Bugfix from Serge Semashko that fixes a bug introduced when we applied his 2003-08-12 08:20:16 +00:00
http.h Serge Semashko added CURLOPT_PROXYAUTH support, and now NTLM for proxies 2003-08-11 11:47:45 +00:00
if2ip.c
if2ip.h
inet_ntoa_r.h
krb4.c
krb4.h
ldap.c
ldap.h
libcurl.def
llist.c
llist.h
Makefile.am chmod the cabundle file before we attempt to write to it, to make 2003-08-08 11:13:18 +00:00
Makefile.b32
Makefile.b32.resp
makefile.dj
Makefile.m32 Andrés García updated with the added files etc 2003-07-25 08:59:55 +00:00
Makefile.riscos
Makefile.vc6 Jörg Müller-Tolk updated this to build fine with 7.10.6 2003-07-30 14:19:44 +00:00
md5.c
md5.h
memdebug.c allow out-of-memory testing by setting a limit. That number of memory 2003-08-14 14:19:36 +00:00
memdebug.h allow out-of-memory testing by setting a limit. That number of memory 2003-08-14 14:19:36 +00:00
mprintf.c fix the treatment of the variable width specifier '*', which caused a bug 2003-08-06 22:32:47 +00:00
multi.c ares awareness/usage/support added. If configure --enable-ares is used, we 2003-08-05 14:40:59 +00:00
netrc.c
netrc.h
progress.c
progress.h
README.ares more fix 2003-08-06 13:22:29 +00:00
README.encoding
README.memoryleak CURLDEBUG, not MALLOCDEBUG 2003-07-22 10:00:37 +00:00
security.c
security.h
sendf.c the new cookie functions that require 'data' passed in 2003-08-11 09:56:06 +00:00
sendf.h
setup.h ares awareness/usage/support added. If configure --enable-ares is used, we 2003-08-05 14:40:59 +00:00
share.c the new cookie functions that require 'data' passed in 2003-08-11 09:56:06 +00:00
share.h Dirk Manske's patch that introduces cookie support to the share interface. 2003-08-04 15:02:42 +00:00
speedcheck.c
speedcheck.h
ssluse.c
ssluse.h
strequal.c
strequal.h
strtok.c
strtok.h
telnet.c Removed #include <sys/resource.h>, as pointed out by Henry Bland we don't 2003-07-25 08:30:58 +00:00
telnet.h
timeval.c
timeval.h
transfer.c Serge Semashko added CURLOPT_PROXYAUTH support, and now NTLM for proxies 2003-08-11 11:47:45 +00:00
transfer.h
url.c prevent memory leak when going out of memory 2003-08-14 14:20:03 +00:00
url.h ares awareness/usage/support added. If configure --enable-ares is used, we 2003-08-05 14:40:59 +00:00
urldata.h Added support for CURLINFO_HTTP_CONNECTCODE 2003-08-11 23:15:41 +00:00
version.c Set the CURL_VERSION_ASYNCHDNS bit if USE_ARES is defined. 2003-08-11 23:13:09 +00:00

$Id$
                                  _   _ ____  _     
                              ___| | | |  _ \| |    
                             / __| | | | |_) | |    
                            | (__| |_| |  _ <| |___ 
                             \___|\___/|_| \_\_____|

             How To Track Down Suspected Memory Leaks in libcurl
             ===================================================

Single-threaded

  Please note that this memory leak system is not adjusted to work in more
  than one thread. If you want/need to use it in a multi-threaded app. Please
  adjust accordingly.


Build

  Rebuild libcurl with -DCURLDEBUG (usually, rerunning configure with
  --enable-debug fixes this). 'make clean' first, then 'make' so that all
  files actually are rebuilt properly. It will also make sense to build
  libcurl with the debug option (usually -g to the compiler) so that debugging
  it will be easier if you actually do find a leak in the library.

  This will create a library that has memory debugging enabled.

Modify Your Application

  Add a line in your application code:

       curl_memdebug("filename");

  This will make the malloc debug system output a full trace of all resource
  using functions to the given file name. Make sure you rebuild your program
  and that you link with the same libcurl you built for this purpose as
  described above.

Run Your Application

  Run your program as usual. Watch the specified memory trace file grow.

  Make your program exit and use the proper libcurl cleanup functions etc. So
  that all non-leaks are returned/freed properly.

Analyze the Flow

  Use the tests/memanalyze.pl perl script to analyze the memdump file:

    tests/memanalyze.pl < memdump

  This now outputs a report on what resources that were allocated but never
  freed etc. This report is very fine for posting to the list!

  If this doesn't produce any output, no leak was detected in libcurl. Then
  the leak is mostly likely to be in your code.