cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: MemoryTracking internal adjustments

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 15 Aug 2011 19:29:42 +0200 (CEST)

On Mon, 15 Aug 2011, Yang Tse wrote:

> 1) make curl_docalloc() call system's calloc() and remove the zero fill.
>
> 2) remove the magic 0xA5 fill from curl_domalloc()
>
> 3) remove the magix 0x13 fill from curl_dofree()

Sure go ahead.

As I remember these things I added them long before I started using valgrind
so they served some kind of purpose to better help us track serious mistakes
in the code where we'd re-use free()d data etc.

I can't even recall when I've actually have had use for that the last time as
these days I immediately use valgrind if I want to track down problems like
that - I don't see any need or benefit with keeping that code.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-08-15