MemoryTracking: adjust curl_domalloc() and curl_dofree() memory filling
authorYang Tse <yangsita@gmail.com>
Wed, 17 Aug 2011 17:02:42 +0000 (19:02 +0200)
committerYang Tse <yangsita@gmail.com>
Wed, 17 Aug 2011 17:02:42 +0000 (19:02 +0200)
commit31a1af5ebb0deb8a18de8cb7fa26df1a60afef47
tree98c1cf8057320ad8523734321520343b95d3f1e5
parent9710f387c40b4f911c2522f024155516fa8ab3e7
MemoryTracking: adjust curl_domalloc() and curl_dofree() memory filling

Until 2011-08-17 libcurl's Memory Tracking feature also performed
automatic malloc and free filling operations using 0xA5 and 0x13
values. Our own preinitialization of dynamically allocated memory
might be useful when not using third party memory debuggers, but
on the other hand this would fool memory debuggers into thinking
that all dynamically allocated memory is properly initialized.

As a default setting, libcurl's Memory Tracking feature no longer
performs preinitialization of dynamically allocated memory on its
own. If you know what you are doing, and really want to retain old
behavior, you can achieve this compiling with preprocessor symbols
CURL_MT_MALLOC_FILL and CURL_MT_FREE_FILL defined with appropriate
values.
lib/memdebug.c