Re: cbdataFree() in -HEAD ?

From: Adrian Chadd <adrian@dont-contact.us>
Date: Tue, 13 Mar 2001 21:04:35 +0800

On Tue, Mar 13, 2001, Henrik Nordstrom wrote:
> Interesting that x = (cbdataInternalFree(x), NULL) bombs out on IRIX. I
> can only quess to the cause, and the more I look at it, the more it
> smells a compiler bug..
>
> Anyway, either of the proposed would do, but I think we should stick to
> the same definition as used by safe_free:
>
> #define cbdataFree(x) if (x) { cbdataInternalFree(x); (x) = NULL; }

Well, the reason I did it my way is because cbdataFree() will then
work in strange if/while/for setups. Granted, that doesn't happen
in squid with cb*(), but the FreeBSD people I've chatted to about this
indicate you can get into some realy weird stuff thats hard to
track down.

>

-- 
Adrian Chadd		"The fact you can download a 100 megabyte file
<adrian@creative.net.au>  from half way around the world should be viewed
			    as an accident and not a right."
					-- Adrian Chadd and Bill Fumerola
Received on Tue Mar 13 2001 - 06:04:44 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:37 MST