quadrilateralcowboy/curl/lib
2020-06-12 14:06:25 -07:00
..
amigaos.c Initial commit 2020-06-12 14:06:25 -07:00
amigaos.h Initial commit 2020-06-12 14:06:25 -07:00
arpa_telnet.h Initial commit 2020-06-12 14:06:25 -07:00
base64.c Initial commit 2020-06-12 14:06:25 -07:00
base64.h Initial commit 2020-06-12 14:06:25 -07:00
ca-bundle.crt Initial commit 2020-06-12 14:06:25 -07:00
ca-bundle.h Initial commit 2020-06-12 14:06:25 -07:00
config-amigaos.h Initial commit 2020-06-12 14:06:25 -07:00
config-mac.h Initial commit 2020-06-12 14:06:25 -07:00
config-netware.h Initial commit 2020-06-12 14:06:25 -07:00
config-riscos.h Initial commit 2020-06-12 14:06:25 -07:00
config-vms.h Initial commit 2020-06-12 14:06:25 -07:00
config-win32.h Initial commit 2020-06-12 14:06:25 -07:00
config.dj Initial commit 2020-06-12 14:06:25 -07:00
config.h.in Initial commit 2020-06-12 14:06:25 -07:00
connect.c Initial commit 2020-06-12 14:06:25 -07:00
connect.h Initial commit 2020-06-12 14:06:25 -07:00
content_encoding.c Initial commit 2020-06-12 14:06:25 -07:00
content_encoding.h Initial commit 2020-06-12 14:06:25 -07:00
cookie.c Initial commit 2020-06-12 14:06:25 -07:00
cookie.h Initial commit 2020-06-12 14:06:25 -07:00
curllib.dsp Initial commit 2020-06-12 14:06:25 -07:00
curllib.dsw Initial commit 2020-06-12 14:06:25 -07:00
curllib.vcproj Initial commit 2020-06-12 14:06:25 -07:00
dict.c Initial commit 2020-06-12 14:06:25 -07:00
dict.h Initial commit 2020-06-12 14:06:25 -07:00
easy.c Initial commit 2020-06-12 14:06:25 -07:00
escape.c Initial commit 2020-06-12 14:06:25 -07:00
escape.h Initial commit 2020-06-12 14:06:25 -07:00
file.c Initial commit 2020-06-12 14:06:25 -07:00
file.h Initial commit 2020-06-12 14:06:25 -07:00
formdata.c Initial commit 2020-06-12 14:06:25 -07:00
formdata.h Initial commit 2020-06-12 14:06:25 -07:00
ftp.c Initial commit 2020-06-12 14:06:25 -07:00
ftp.h Initial commit 2020-06-12 14:06:25 -07:00
getdate.c Initial commit 2020-06-12 14:06:25 -07:00
getdate.h Initial commit 2020-06-12 14:06:25 -07:00
getdate.y Initial commit 2020-06-12 14:06:25 -07:00
getenv.c Initial commit 2020-06-12 14:06:25 -07:00
getinfo.c Initial commit 2020-06-12 14:06:25 -07:00
getinfo.h Initial commit 2020-06-12 14:06:25 -07:00
hash.c Initial commit 2020-06-12 14:06:25 -07:00
hash.h Initial commit 2020-06-12 14:06:25 -07:00
hostip.c Initial commit 2020-06-12 14:06:25 -07:00
hostip.h Initial commit 2020-06-12 14:06:25 -07:00
http.c Initial commit 2020-06-12 14:06:25 -07:00
http.h Initial commit 2020-06-12 14:06:25 -07:00
http_chunks.c Initial commit 2020-06-12 14:06:25 -07:00
http_chunks.h Initial commit 2020-06-12 14:06:25 -07:00
http_digest.c Initial commit 2020-06-12 14:06:25 -07:00
http_digest.h Initial commit 2020-06-12 14:06:25 -07:00
http_negotiate.c Initial commit 2020-06-12 14:06:25 -07:00
http_negotiate.h Initial commit 2020-06-12 14:06:25 -07:00
http_ntlm.c Initial commit 2020-06-12 14:06:25 -07:00
http_ntlm.h Initial commit 2020-06-12 14:06:25 -07:00
if2ip.c Initial commit 2020-06-12 14:06:25 -07:00
if2ip.h Initial commit 2020-06-12 14:06:25 -07:00
inet_ntoa_r.h Initial commit 2020-06-12 14:06:25 -07:00
inet_pton.c Initial commit 2020-06-12 14:06:25 -07:00
inet_pton.h Initial commit 2020-06-12 14:06:25 -07:00
krb4.c Initial commit 2020-06-12 14:06:25 -07:00
krb4.h Initial commit 2020-06-12 14:06:25 -07:00
ldap.c Initial commit 2020-06-12 14:06:25 -07:00
ldap.h Initial commit 2020-06-12 14:06:25 -07:00
libcurl.def Initial commit 2020-06-12 14:06:25 -07:00
libcurl.framework.make Initial commit 2020-06-12 14:06:25 -07:00
libcurl.imp Initial commit 2020-06-12 14:06:25 -07:00
libcurl.plist Initial commit 2020-06-12 14:06:25 -07:00
libcurl.rc Initial commit 2020-06-12 14:06:25 -07:00
llist.c Initial commit 2020-06-12 14:06:25 -07:00
llist.h Initial commit 2020-06-12 14:06:25 -07:00
Makefile.am Initial commit 2020-06-12 14:06:25 -07:00
makefile.amiga Initial commit 2020-06-12 14:06:25 -07:00
Makefile.b32 Initial commit 2020-06-12 14:06:25 -07:00
Makefile.b32.resp Initial commit 2020-06-12 14:06:25 -07:00
makefile.dj Initial commit 2020-06-12 14:06:25 -07:00
Makefile.in Initial commit 2020-06-12 14:06:25 -07:00
Makefile.m32 Initial commit 2020-06-12 14:06:25 -07:00
Makefile.netware Initial commit 2020-06-12 14:06:25 -07:00
Makefile.riscos Initial commit 2020-06-12 14:06:25 -07:00
Makefile.vc6 Initial commit 2020-06-12 14:06:25 -07:00
md5.c Initial commit 2020-06-12 14:06:25 -07:00
md5.h Initial commit 2020-06-12 14:06:25 -07:00
memdebug.c Initial commit 2020-06-12 14:06:25 -07:00
memdebug.h Initial commit 2020-06-12 14:06:25 -07:00
mprintf.c Initial commit 2020-06-12 14:06:25 -07:00
multi.c Initial commit 2020-06-12 14:06:25 -07:00
netrc.c Initial commit 2020-06-12 14:06:25 -07:00
netrc.h Initial commit 2020-06-12 14:06:25 -07:00
nwlib.c Initial commit 2020-06-12 14:06:25 -07:00
progress.c Initial commit 2020-06-12 14:06:25 -07:00
progress.h Initial commit 2020-06-12 14:06:25 -07:00
README.ares Initial commit 2020-06-12 14:06:25 -07:00
README.encoding Initial commit 2020-06-12 14:06:25 -07:00
README.memoryleak Initial commit 2020-06-12 14:06:25 -07:00
security.c Initial commit 2020-06-12 14:06:25 -07:00
security.h Initial commit 2020-06-12 14:06:25 -07:00
sendf.c Initial commit 2020-06-12 14:06:25 -07:00
sendf.h Initial commit 2020-06-12 14:06:25 -07:00
setup.h Initial commit 2020-06-12 14:06:25 -07:00
share.c Initial commit 2020-06-12 14:06:25 -07:00
share.h Initial commit 2020-06-12 14:06:25 -07:00
speedcheck.c Initial commit 2020-06-12 14:06:25 -07:00
speedcheck.h Initial commit 2020-06-12 14:06:25 -07:00
ssluse.c Initial commit 2020-06-12 14:06:25 -07:00
ssluse.h Initial commit 2020-06-12 14:06:25 -07:00
strequal.c Initial commit 2020-06-12 14:06:25 -07:00
strequal.h Initial commit 2020-06-12 14:06:25 -07:00
strtok.c Initial commit 2020-06-12 14:06:25 -07:00
strtok.h Initial commit 2020-06-12 14:06:25 -07:00
strtoofft.c Initial commit 2020-06-12 14:06:25 -07:00
strtoofft.h Initial commit 2020-06-12 14:06:25 -07:00
telnet.c Initial commit 2020-06-12 14:06:25 -07:00
telnet.h Initial commit 2020-06-12 14:06:25 -07:00
timeval.c Initial commit 2020-06-12 14:06:25 -07:00
timeval.h Initial commit 2020-06-12 14:06:25 -07:00
transfer.c Initial commit 2020-06-12 14:06:25 -07:00
transfer.h Initial commit 2020-06-12 14:06:25 -07:00
url.c Initial commit 2020-06-12 14:06:25 -07:00
url.h Initial commit 2020-06-12 14:06:25 -07:00
urldata.h Initial commit 2020-06-12 14:06:25 -07:00
version.c Initial commit 2020-06-12 14:06:25 -07:00

$Id: README.memoryleak,v 1.3 2003/07/22 10:00:37 bagder Exp $
                                  _   _ ____  _     
                              ___| | | |  _ \| |    
                             / __| | | | |_) | |    
                            | (__| |_| |  _ <| |___ 
                             \___|\___/|_| \_\_____|

             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.