curl/lib
Daniel Stenberg 8f77030473 Initial commit of the first attempt to make three new *strerror() functions.
No protos in the headers yet and no docs.
2004-03-15 11:51:32 +00:00
..
.cvsignore
amigaos.c
amigaos.h
arpa_telnet.h
base64.c
base64.h
ca-bundle.crt
config-amigaos.h
config-mac.h
config-riscos.h
config-vms.h
config-win32.h make windows builds use the OS string "i386-pc-win32" instead of just "win32" 2004-03-10 08:14:22 +00:00
config.dj
connect.c Gisle Vanem's fixes to use CURL_SOCKET_BAD more instead of -1 for sockets. 2004-03-11 13:13:35 +00:00
connect.h Use curl_socket_t instead of int for holding sockets. The typedefs and 2004-03-09 22:52:50 +00:00
content_encoding.c
content_encoding.h
cookie.c strequal() returns int so we typecast the return to bool when we store the 2004-03-10 09:41:37 +00:00
cookie.h
curl_strerror.c Initial commit of the first attempt to make three new *strerror() functions. 2004-03-15 11:51:32 +00:00
curllib.dsp
curllib.dsw
dict.c Use curl_socket_t instead of int for holding sockets. The typedefs and 2004-03-09 22:52:50 +00:00
dict.h
easy.c
escape.c
escape.h
file.c Use more curl_off_t variables when doing the progress meter calculations and 2004-03-10 16:20:33 +00:00
file.h
formdata.c more variable type fixing for the huge posts 2004-03-12 14:22:16 +00:00
formdata.h more variable type fixing for the huge posts 2004-03-12 14:22:16 +00:00
ftp.c Gisle Vanem's fixes to use CURL_SOCKET_BAD more instead of -1 for sockets. 2004-03-11 13:13:35 +00:00
ftp.h
getdate.c.cvs
getdate.h
getdate.y
getenv.c
getinfo.c dl and ulspeed are now curl_off_t so typecast them to double when we 2004-03-11 21:51:55 +00:00
getinfo.h
hash.c
hash.h
hostip.c store times in time_t 2004-03-10 09:36:43 +00:00
hostip.h
http_chunks.c
http_chunks.h
http_digest.c
http_digest.h
http_negotiate.c
http_negotiate.h
http_ntlm.c
http_ntlm.h
http.c fix signed and unsigned warnings 2004-03-14 18:15:04 +00:00
http.h
if2ip.c
if2ip.h
inet_ntoa_r.h
inet_pton.c
inet_pton.h
krb4.c
krb4.h
ldap.c
ldap.h
libcurl.def
libcurl.framework.make
libcurl.plist
libcurl.rc
llist.c
llist.h
Makefile.am
makefile.amiga
Makefile.b32
Makefile.b32.resp
makefile.dj
Makefile.m32
Makefile.riscos
Makefile.vc6
md5.c
md5.h
memdebug.c
memdebug.h
mprintf.c
multi.c Gisle Vanem's fixes to use CURL_SOCKET_BAD more instead of -1 for sockets. 2004-03-11 13:13:35 +00:00
netrc.c
netrc.h
progress.c Made max5data() take a curl_off_t size as argument instead of double. Should 2004-03-11 21:48:15 +00:00
progress.h Use more curl_off_t variables when doing the progress meter calculations and 2004-03-10 16:20:33 +00:00
README.ares
README.encoding
README.memoryleak
security.c
security.h
sendf.c Minor edit to avoid an unreachable break and to remove the extra {} body 2004-03-10 09:50:12 +00:00
sendf.h curl_socket_t mistakes cleanup 2004-03-10 16:01:47 +00:00
setup.h Nah, ignore the OS define in here. This is being included by ares and it 2004-03-10 10:19:32 +00:00
share.c
share.h
speedcheck.c
speedcheck.h
ssluse.c don't let the EINTR stuff build on windows 2004-03-11 12:57:04 +00:00
ssluse.h curl_socket_t mistakes cleanup 2004-03-10 16:01:47 +00:00
strequal.c
strequal.h
strtok.c
strtok.h
strtoofft.c
strtoofft.h
telnet.c Gisle Vanem's fixes to use CURL_SOCKET_BAD more instead of -1 for sockets. 2004-03-11 13:13:35 +00:00
telnet.h
timeval.c Gisle Vanem's fixes to use CURL_SOCKET_BAD more instead of -1 for sockets. 2004-03-11 13:13:35 +00:00
timeval.h
transfer.c Gisle Vanem's fixes to use CURL_SOCKET_BAD more instead of -1 for sockets. 2004-03-11 13:13:35 +00:00
transfer.h curl_socket_t mistakes cleanup 2004-03-10 16:01:47 +00:00
url.c Added CURLOPT_POSTFIELDSIZE_LARGE to offer a large file version of the 2004-03-12 08:55:47 +00:00
url.h
urldata.h more variable type fixes for the large POST support 2004-03-12 13:06:01 +00:00
version.c

$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.