doom3/neo/curl/lib
Timothee 'TTimo' Besset fb1609f554 hello world
2011-11-22 15:28:15 -06:00
..
amigaos.c hello world 2011-11-22 15:28:15 -06:00
amigaos.h hello world 2011-11-22 15:28:15 -06:00
arpa_telnet.h hello world 2011-11-22 15:28:15 -06:00
base64.c hello world 2011-11-22 15:28:15 -06:00
base64.h hello world 2011-11-22 15:28:15 -06:00
ca-bundle.crt hello world 2011-11-22 15:28:15 -06:00
ca-bundle.h hello world 2011-11-22 15:28:15 -06:00
config-amigaos.h hello world 2011-11-22 15:28:15 -06:00
config-mac.h hello world 2011-11-22 15:28:15 -06:00
config-netware.h hello world 2011-11-22 15:28:15 -06:00
config-riscos.h hello world 2011-11-22 15:28:15 -06:00
config-vms.h hello world 2011-11-22 15:28:15 -06:00
config-win32.h hello world 2011-11-22 15:28:15 -06:00
config.dj hello world 2011-11-22 15:28:15 -06:00
config.h.in hello world 2011-11-22 15:28:15 -06:00
connect.c hello world 2011-11-22 15:28:15 -06:00
connect.h hello world 2011-11-22 15:28:15 -06:00
content_encoding.c hello world 2011-11-22 15:28:15 -06:00
content_encoding.h hello world 2011-11-22 15:28:15 -06:00
cookie.c hello world 2011-11-22 15:28:15 -06:00
cookie.h hello world 2011-11-22 15:28:15 -06:00
curllib.dsp hello world 2011-11-22 15:28:15 -06:00
curllib.dsw hello world 2011-11-22 15:28:15 -06:00
curllib.vcproj hello world 2011-11-22 15:28:15 -06:00
dict.c hello world 2011-11-22 15:28:15 -06:00
dict.h hello world 2011-11-22 15:28:15 -06:00
easy.c hello world 2011-11-22 15:28:15 -06:00
escape.c hello world 2011-11-22 15:28:15 -06:00
escape.h hello world 2011-11-22 15:28:15 -06:00
file.c hello world 2011-11-22 15:28:15 -06:00
file.h hello world 2011-11-22 15:28:15 -06:00
formdata.c hello world 2011-11-22 15:28:15 -06:00
formdata.h hello world 2011-11-22 15:28:15 -06:00
ftp.c hello world 2011-11-22 15:28:15 -06:00
ftp.h hello world 2011-11-22 15:28:15 -06:00
getdate.c hello world 2011-11-22 15:28:15 -06:00
getdate.h hello world 2011-11-22 15:28:15 -06:00
getdate.y hello world 2011-11-22 15:28:15 -06:00
getenv.c hello world 2011-11-22 15:28:15 -06:00
getinfo.c hello world 2011-11-22 15:28:15 -06:00
getinfo.h hello world 2011-11-22 15:28:15 -06:00
hash.c hello world 2011-11-22 15:28:15 -06:00
hash.h hello world 2011-11-22 15:28:15 -06:00
hostip.c hello world 2011-11-22 15:28:15 -06:00
hostip.h hello world 2011-11-22 15:28:15 -06:00
http.c hello world 2011-11-22 15:28:15 -06:00
http.h hello world 2011-11-22 15:28:15 -06:00
http_chunks.c hello world 2011-11-22 15:28:15 -06:00
http_chunks.h hello world 2011-11-22 15:28:15 -06:00
http_digest.c hello world 2011-11-22 15:28:15 -06:00
http_digest.h hello world 2011-11-22 15:28:15 -06:00
http_negotiate.c hello world 2011-11-22 15:28:15 -06:00
http_negotiate.h hello world 2011-11-22 15:28:15 -06:00
http_ntlm.c hello world 2011-11-22 15:28:15 -06:00
http_ntlm.h hello world 2011-11-22 15:28:15 -06:00
if2ip.c hello world 2011-11-22 15:28:15 -06:00
if2ip.h hello world 2011-11-22 15:28:15 -06:00
inet_ntoa_r.h hello world 2011-11-22 15:28:15 -06:00
inet_pton.c hello world 2011-11-22 15:28:15 -06:00
inet_pton.h hello world 2011-11-22 15:28:15 -06:00
krb4.c hello world 2011-11-22 15:28:15 -06:00
krb4.h hello world 2011-11-22 15:28:15 -06:00
ldap.c hello world 2011-11-22 15:28:15 -06:00
ldap.h hello world 2011-11-22 15:28:15 -06:00
libcurl.def hello world 2011-11-22 15:28:15 -06:00
libcurl.framework.make hello world 2011-11-22 15:28:15 -06:00
libcurl.imp hello world 2011-11-22 15:28:15 -06:00
libcurl.plist hello world 2011-11-22 15:28:15 -06:00
libcurl.rc hello world 2011-11-22 15:28:15 -06:00
llist.c hello world 2011-11-22 15:28:15 -06:00
llist.h hello world 2011-11-22 15:28:15 -06:00
Makefile.am hello world 2011-11-22 15:28:15 -06:00
makefile.amiga hello world 2011-11-22 15:28:15 -06:00
Makefile.b32 hello world 2011-11-22 15:28:15 -06:00
Makefile.b32.resp hello world 2011-11-22 15:28:15 -06:00
makefile.dj hello world 2011-11-22 15:28:15 -06:00
Makefile.in hello world 2011-11-22 15:28:15 -06:00
Makefile.m32 hello world 2011-11-22 15:28:15 -06:00
Makefile.netware hello world 2011-11-22 15:28:15 -06:00
Makefile.riscos hello world 2011-11-22 15:28:15 -06:00
Makefile.vc6 hello world 2011-11-22 15:28:15 -06:00
md5.c hello world 2011-11-22 15:28:15 -06:00
md5.h hello world 2011-11-22 15:28:15 -06:00
memdebug.c hello world 2011-11-22 15:28:15 -06:00
memdebug.h hello world 2011-11-22 15:28:15 -06:00
mprintf.c hello world 2011-11-22 15:28:15 -06:00
multi.c hello world 2011-11-22 15:28:15 -06:00
netrc.c hello world 2011-11-22 15:28:15 -06:00
netrc.h hello world 2011-11-22 15:28:15 -06:00
nwlib.c hello world 2011-11-22 15:28:15 -06:00
progress.c hello world 2011-11-22 15:28:15 -06:00
progress.h hello world 2011-11-22 15:28:15 -06:00
README.ares hello world 2011-11-22 15:28:15 -06:00
README.encoding hello world 2011-11-22 15:28:15 -06:00
README.memoryleak hello world 2011-11-22 15:28:15 -06:00
security.c hello world 2011-11-22 15:28:15 -06:00
security.h hello world 2011-11-22 15:28:15 -06:00
sendf.c hello world 2011-11-22 15:28:15 -06:00
sendf.h hello world 2011-11-22 15:28:15 -06:00
setup.h hello world 2011-11-22 15:28:15 -06:00
share.c hello world 2011-11-22 15:28:15 -06:00
share.h hello world 2011-11-22 15:28:15 -06:00
speedcheck.c hello world 2011-11-22 15:28:15 -06:00
speedcheck.h hello world 2011-11-22 15:28:15 -06:00
ssluse.c hello world 2011-11-22 15:28:15 -06:00
ssluse.h hello world 2011-11-22 15:28:15 -06:00
strequal.c hello world 2011-11-22 15:28:15 -06:00
strequal.h hello world 2011-11-22 15:28:15 -06:00
strtok.c hello world 2011-11-22 15:28:15 -06:00
strtok.h hello world 2011-11-22 15:28:15 -06:00
strtoofft.c hello world 2011-11-22 15:28:15 -06:00
strtoofft.h hello world 2011-11-22 15:28:15 -06:00
telnet.c hello world 2011-11-22 15:28:15 -06:00
telnet.h hello world 2011-11-22 15:28:15 -06:00
timeval.c hello world 2011-11-22 15:28:15 -06:00
timeval.h hello world 2011-11-22 15:28:15 -06:00
transfer.c hello world 2011-11-22 15:28:15 -06:00
transfer.h hello world 2011-11-22 15:28:15 -06:00
url.c hello world 2011-11-22 15:28:15 -06:00
url.h hello world 2011-11-22 15:28:15 -06:00
urldata.h hello world 2011-11-22 15:28:15 -06:00
version.c hello world 2011-11-22 15:28:15 -06: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.