Henrik Nordström wrote:
lör 2010-08-21 klockan 07:02 +1200 skrev Robert Collins:
it was to stop crashes with code that had been cast and was freed with
xfree(); if you don't alloc with a matching allocator, and the
platform has a different default new - *boom*.
Allocating with new and freeing with free() is a coding error in all
books.
There may be nothing like that left to worry about now.
I sure hope not.
valgrind reports it as an error. I think I recall seeing gcc 4.3+ report
it as a warning which we catch with -Werror. The older ones (ala gcc 2.*
and 3.* did not AFAIK, thus the high potential for flashing lights and
sound effects).
Amos
--
Please be using
Current Stable Squid 2.7.STABLE9 or 3.1.6
Beta testers wanted for 3.2.0.1