NS/main/source/curl/lib
puzl a6f04d2ca3 changing eol-style
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@4 67975925-1194-0748-b3d5-c16f83f1a3a1
2005-03-10 09:58:43 +00:00
..
arpa_telnet.h changing eol-style 2005-03-10 09:58:43 +00:00
base64.c changing eol-style 2005-03-10 09:58:43 +00:00
base64.h changing eol-style 2005-03-10 09:58:43 +00:00
ca-bundle.crt changing eol-style 2005-03-10 09:58:43 +00:00
ca-bundle.h changing eol-style 2005-03-10 09:58:43 +00:00
ca-bundle.h.in changing eol-style 2005-03-10 09:58:43 +00:00
config-mac.h changing eol-style 2005-03-10 09:58:43 +00:00
config-riscos.h changing eol-style 2005-03-10 09:58:43 +00:00
config-vms.h changing eol-style 2005-03-10 09:58:43 +00:00
config-win32.h changing eol-style 2005-03-10 09:58:43 +00:00
config.h.in changing eol-style 2005-03-10 09:58:43 +00:00
connect.c changing eol-style 2005-03-10 09:58:43 +00:00
connect.h changing eol-style 2005-03-10 09:58:43 +00:00
content_encoding.c changing eol-style 2005-03-10 09:58:43 +00:00
content_encoding.h changing eol-style 2005-03-10 09:58:43 +00:00
cookie.c changing eol-style 2005-03-10 09:58:43 +00:00
cookie.h changing eol-style 2005-03-10 09:58:43 +00:00
curllib.vcproj Import from old repository 2005-03-09 01:31:56 +00:00
dict.c changing eol-style 2005-03-10 09:58:43 +00:00
dict.h changing eol-style 2005-03-10 09:58:43 +00:00
easy.c changing eol-style 2005-03-10 09:58:43 +00:00
escape.c changing eol-style 2005-03-10 09:58:43 +00:00
escape.h changing eol-style 2005-03-10 09:58:43 +00:00
file.c changing eol-style 2005-03-10 09:58:43 +00:00
file.h changing eol-style 2005-03-10 09:58:43 +00:00
formdata.c changing eol-style 2005-03-10 09:58:43 +00:00
formdata.h changing eol-style 2005-03-10 09:58:43 +00:00
ftp.c changing eol-style 2005-03-10 09:58:43 +00:00
ftp.h changing eol-style 2005-03-10 09:58:43 +00:00
getdate.c changing eol-style 2005-03-10 09:58:43 +00:00
getdate.h changing eol-style 2005-03-10 09:58:43 +00:00
getdate.y Import from old repository 2005-03-09 01:31:56 +00:00
getenv.c changing eol-style 2005-03-10 09:58:43 +00:00
getinfo.c changing eol-style 2005-03-10 09:58:43 +00:00
getinfo.h changing eol-style 2005-03-10 09:58:43 +00:00
getpass.c changing eol-style 2005-03-10 09:58:43 +00:00
getpass.h changing eol-style 2005-03-10 09:58:43 +00:00
hash.c changing eol-style 2005-03-10 09:58:43 +00:00
hash.h changing eol-style 2005-03-10 09:58:43 +00:00
hostip.c changing eol-style 2005-03-10 09:58:43 +00:00
hostip.h changing eol-style 2005-03-10 09:58:43 +00:00
http.c changing eol-style 2005-03-10 09:58:43 +00:00
http.h changing eol-style 2005-03-10 09:58:43 +00:00
http_chunks.c changing eol-style 2005-03-10 09:58:43 +00:00
http_chunks.h changing eol-style 2005-03-10 09:58:43 +00:00
if2ip.c changing eol-style 2005-03-10 09:58:43 +00:00
if2ip.h changing eol-style 2005-03-10 09:58:43 +00:00
inet_ntoa_r.h changing eol-style 2005-03-10 09:58:43 +00:00
krb4.c changing eol-style 2005-03-10 09:58:43 +00:00
krb4.h changing eol-style 2005-03-10 09:58:43 +00:00
ldap.c changing eol-style 2005-03-10 09:58:43 +00:00
ldap.h changing eol-style 2005-03-10 09:58:43 +00:00
libcurl.def changing eol-style 2005-03-10 09:58:43 +00:00
llist.c changing eol-style 2005-03-10 09:58:43 +00:00
llist.h changing eol-style 2005-03-10 09:58:43 +00:00
Makefile.am changing eol-style 2005-03-10 09:58:43 +00:00
Makefile.b32 changing eol-style 2005-03-10 09:58:43 +00:00
Makefile.b32.resp changing eol-style 2005-03-10 09:58:43 +00:00
Makefile.in changing eol-style 2005-03-10 09:58:43 +00:00
Makefile.m32 changing eol-style 2005-03-10 09:58:43 +00:00
Makefile.riscos changing eol-style 2005-03-10 09:58:43 +00:00
Makefile.vc6 changing eol-style 2005-03-10 09:58:43 +00:00
memdebug.c changing eol-style 2005-03-10 09:58:43 +00:00
memdebug.h changing eol-style 2005-03-10 09:58:43 +00:00
mprintf.c changing eol-style 2005-03-10 09:58:43 +00:00
multi.c changing eol-style 2005-03-10 09:58:43 +00:00
netrc.c changing eol-style 2005-03-10 09:58:43 +00:00
netrc.h changing eol-style 2005-03-10 09:58:43 +00:00
progress.c changing eol-style 2005-03-10 09:58:43 +00:00
progress.h changing eol-style 2005-03-10 09:58:43 +00:00
README.encoding changing eol-style 2005-03-10 09:58:43 +00:00
README.memoryleak changing eol-style 2005-03-10 09:58:43 +00:00
security.c changing eol-style 2005-03-10 09:58:43 +00:00
security.h changing eol-style 2005-03-10 09:58:43 +00:00
sendf.c changing eol-style 2005-03-10 09:58:43 +00:00
sendf.h changing eol-style 2005-03-10 09:58:43 +00:00
setup.h changing eol-style 2005-03-10 09:58:43 +00:00
share.c changing eol-style 2005-03-10 09:58:43 +00:00
share.h changing eol-style 2005-03-10 09:58:43 +00:00
speedcheck.c changing eol-style 2005-03-10 09:58:43 +00:00
speedcheck.h changing eol-style 2005-03-10 09:58:43 +00:00
ssluse.c changing eol-style 2005-03-10 09:58:43 +00:00
ssluse.h changing eol-style 2005-03-10 09:58:43 +00:00
strequal.c changing eol-style 2005-03-10 09:58:43 +00:00
strequal.h changing eol-style 2005-03-10 09:58:43 +00:00
strtok.c changing eol-style 2005-03-10 09:58:43 +00:00
strtok.h changing eol-style 2005-03-10 09:58:43 +00:00
telnet.c changing eol-style 2005-03-10 09:58:43 +00:00
telnet.h changing eol-style 2005-03-10 09:58:43 +00:00
timeval.c changing eol-style 2005-03-10 09:58:43 +00:00
timeval.h changing eol-style 2005-03-10 09:58:43 +00:00
transfer.c changing eol-style 2005-03-10 09:58:43 +00:00
transfer.h changing eol-style 2005-03-10 09:58:43 +00:00
url.c changing eol-style 2005-03-10 09:58:43 +00:00
url.h changing eol-style 2005-03-10 09:58:43 +00:00
urldata.h changing eol-style 2005-03-10 09:58:43 +00:00
version.c changing eol-style 2005-03-10 09:58:43 +00:00

$Id: README.memoryleak,v 1.2 2002/10/28 21:05:14 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 -DMALLOCDEBUG (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.