Do you mean to make certain that anything I set puser to is a valid
argument to free? And that it will be ok to set puser to 0, since free(0)
is a valid call?
> On Friday 28 January 2011 12:20:26 [email protected] wrote:
>> I'm not sure what you mean by "never set puser to anything else other
>> than
>> zero."?
>
> Sorry, that was badly worded. I just meant to say that you should only
> call
> your cleanup() routine for channels that have puser set to a value that is
> to
> be passed to free(), and that it is legal to call free(0).
>
> - Andrew
> --
> If a man is offered a fact which goes against his instincts, he will
> scrutinize it closely, and unless the evidence is overwhelming, he will
> refuse to believe it. If, on the other hand, he is offered something
> which affords a reason for acting in accordance to his instincts, he
> will accept it even on the slightest evidence. -- Bertrand Russell
>
>
- References:
- ca_create_channel memory management pthomas
- Re: ca_create_channel memory management Andrew Johnson
- Re: ca_create_channel memory management pthomas
- Re: ca_create_channel memory management Andrew Johnson
- Navigate by Date:
- Prev:
Re: ca_create_channel memory management Andrew Johnson
- Next:
Setting BPTR Till Straumann
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: ca_create_channel memory management Andrew Johnson
- Next:
Re: ca_create_channel memory management Tim Mooney
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|