index  prev  next

new memory handling system

--------------------------------------------------------------------------------------

A nasty hack in the parameter handling code in Samba came back to haunt us in early 2000 when a bug was observed that resulted in incorrect name query requests being sent during domain authentication.

The bug was caused by some invalid memory handling in lp_string. The fix required a new pool based memory allocator, which while very simple in itself provide a useful new internal tool in Samba. It is expected that the new system, called talloc, will be used extenstively in the MSRPC code.

tallloc provide for a context based temporary memory allocator which allows alll memory associated with a context to be freed in one go, removing the need for a lot of cumbersome bookkeeping.

--------------------------------------------------------------------------------------

LinuxWorld New York
tridge@linuxcare.com