talloc_tos() in common code

Stefan (metze) Metzmacher metze at samba.org
Wed Apr 13 05:35:56 MDT 2011


I wonder why we can't use the talloc_tos() infrastructure in common code?

I know that we can't use talloc_tos() directly, because the stackframe
might not be in place, but I think we could use something like this:

TALLOC_CTX *frame = talloc_stackframe();

some code ...


This way we'll make use of a talloc pool if the caller
used talloc_stackframe_pool().


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20110413/84df0aa0/attachment.pgp>

More information about the samba-technical mailing list