talloc()

Gerald Carter cartegw at Eng.Auburn.EDU
Tue Jan 4 14:08:05 GMT 2000


Luke Kenneth Casson Leighton wrote:
> 
> microsoft haa memory system where you can addref / release things.  they
> then maintain a reference count.  when the reference count is zero, you
> can clean-up.
> 
> i don't know if you want to consider adding a reference count system, but
> it might help.
> 
> then again, if you addref too many times and don' release enough times,
> the memory sticks around for ever.... not necesarily a good idea!


I've got example code for this from a BOOTP/DHCP server we use.
The initial implementation was from Carnegie-Mellon University 
several years ago.  If anyone is interested.





Cheers,
jerry
________________________________________________________________________
                            Gerald ( Jerry ) Carter	
Engineering Network Services                           Auburn University 
jerry at eng.auburn.edu             http://www.eng.auburn.edu/users/cartegw

       "...a hundred billion castaways looking for a home."
                                  - Sting "Message in a Bottle" ( 1979 )


More information about the samba-technical mailing list