summaryrefslogtreecommitdiff
path: root/tests/memanalyze.pl
Commit message (Collapse)AuthorAgeFilesLines
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* memanalyze.pl: handle free(NULL)Jay Satiro2015-03-101-3/+6
|
* Reinstate "WIN32 MemoryTracking: track wcsdup() _wcsdup() and _tcsdup() usage".Yang Tse2013-07-181-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 7ed25cc, reinstating commit 8ec2cb5. As of 18-jul-2013 we still do have code in libcurl that makes use of these memory functions. Commit 8ec2cb5 comment still applies and is yet valid. These memory functions are solely used in Windows builds, so all related code is protected with '#ifdef WIN32' preprocessor conditional compilation directives. Specifically, wcsdup() _wcsdup() are used when building a Windows target with UNICODE and USE_WINDOWS_SSPI preprocessor symbols defined. This is the case when building a Windows UNICODE target with Windows native SSL/TLS support enabled. Realizing that wcsdup() _wcsdup() are used is a bit tricky given that usage of these is hidden behind _tcsdup() which is MS way of dealing with code that must tolerate UNICODE and non-UNICODE compilation. Additionally, MS header files and those compatible from other compilers use this preprocessor conditional compilation directive in order to select at compilation time whether 'wide' or 'ansi' MS API functions are used. Without this code, Windows build targets with Windows native SSL/TLS support enabled and MemoryTracking support enabled misbehave in tracking memory usage, regardless of being a UNICODE enabled build or not.
* Revert "WIN32 MemoryTracking: track wcsdup() _wcsdup() and _tcsdup() usage"Daniel Stenberg2013-05-121-22/+1
| | | | | | | | | | | This reverts commit 8ec2cb5544b86306b702484ea785b6b9596562ab. We don't have any code anywhere in libcurl (or the curl tool) that use wcsdup so there's no such memory use to track. It seems to cause mild problems with the Borland compiler though that we may avoid by reverting this change again. Bug: http://curl.haxx.se/mail/lib-2013-05/0070.html
* WIN32 MemoryTracking: track wcsdup() _wcsdup() and _tcsdup() usageYang Tse2013-03-251-1/+22
| | | | | | | | | | | | | | | | | As of 25-mar-2013 wcsdup() _wcsdup() and _tcsdup() are only used in WIN32 specific code, so tracking of these has not been extended for other build targets. Without this fix, memory tracking system on WIN32 builds, when using these functions, would provide misleading results. In order to properly extend this support for all targets curl.h would have to define curl_wcsdup_callback prototype and consequently wchar_t should be visible before that in curl.h. IOW curl_wchar_t defined in curlbuild.h and this pulling whatever system header is required to get wchar_t definition. Additionally a new curl_global_init_mem() function that also receives user defined wcsdup() callback would be required.
* memanalyze.pl: handle fopen() of file names with quotesDaniel Stenberg2013-01-221-2/+2
|
* Revert changes relative to lib/*.[ch] recent renamingYang Tse2013-01-061-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts renaming and usage of lib/*.h header files done 28-12-2012, reverting 2 commits: f871de0... build: make use of 76 lib/*.h renamed files ffd8e12... build: rename 76 lib/*.h files This also reverts removal of redundant include guard (redundant thanks to changes in above commits) done 2-12-2013, reverting 1 commit: c087374... curl_setup.h: remove redundant include guard This also reverts renaming and usage of lib/*.c source files done 3-12-2013, reverting 3 commits: 13606bb... build: make use of 93 lib/*.c renamed files 5b6e792... build: rename 93 lib/*.c files 7d83dff... build: commit 13606bbfde follow-up 1 Start of related discussion thread: http://curl.haxx.se/mail/lib-2013-01/0012.html Asking for confirmation on pushing this revertion commit: http://curl.haxx.se/mail/lib-2013-01/0048.html Confirmation summary: http://curl.haxx.se/mail/lib-2013-01/0079.html NOTICE: The list of 2 files that have been modified by other intermixed commits, while renamed, and also by at least one of the 6 commits this one reverts follows below. These 2 files will exhibit a hole in history unless git's '--follow' option is used when viewing logs. lib/curl_imap.h lib/curl_smtp.h
* build: make use of 93 lib/*.c renamed filesYang Tse2013-01-031-8/+8
| | | | | | 93 *.c source files renamed to use our standard naming scheme. This change affects 77 files in libcurl's source tree.
* socketpair() usage tracking to allow fd leak detectionYang Tse2011-07-291-0/+8
|
* headers: more copyright headers addedDaniel Stenberg2011-03-221-0/+21
|
* replaced tabs with spacesYang Tse2010-02-161-1/+1
|
* removed trailing whitespaceYang Tse2010-02-141-4/+4
|
* Using fdopen() is a more correct way to implement the CURLOPT_NEW_FILE_PREMSJames Housley2007-06-281-1/+1
| | | | | file.c, but the debug interface was missing. This adds the routines needed to make the memory debuging work for fdopen().
* Support realloc() on a NULL pointer properly (printf(%p) on a NULL pointerDaniel Stenberg2005-08-041-4/+2
| | | | outputs (nil) and not a 0x0 or similar.
* add more info when this script gets confused, and added getaddrinfo andDaniel Stenberg2005-06-301-5/+11
| | | | freeaddrinfo to the trace output
* James Bursa's fix to make this deal with malloc(0) as OK to free()Daniel Stenberg2004-05-071-1/+1
|
* Gisle fixed the counting of calloc()sDaniel Stenberg2004-04-291-2/+3
|
* If only a partial file was transfered, we consider that a fatal problem soDaniel Stenberg2004-04-221-0/+5
| | | | | | we won't try to QUIT the control connection and risk "hanging" waiting for a response. Test case 161 verifies this. The quit-sending function was also made static.
* adjusted to work with the modified fopen() line and the new calloc lineDaniel Stenberg2004-02-261-5/+31
|
* supports -l now to display the actual line that was prevented by memlimitDaniel Stenberg2003-10-241-1/+23
|
* produce a single summary of the amount of allocations on -vDaniel Stenberg2003-10-241-1/+6
|
* supprt for the new memlimit stuffDaniel Stenberg2003-08-141-1/+9
|
* pass a file name to memanalyze to read from instead of using stdinDaniel Stenberg2003-01-091-3/+19
|
* fixed to deal with file names that contain colons, as in WindowsDaniel Stenberg2003-01-091-4/+4
|
* test suite mods for the netrc testing stuffDaniel Stenberg2002-05-211-1/+1
|
* moved memanalyze.pl into the tests dirDaniel Stenberg2002-03-011-0/+269