TALLOC_CTX to ldb_search()?

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Dec 4 06:08:34 GMT 2006


On Sun, Dec 03, 2006 at 04:54:03PM -0500, simo wrote:
> > Why does ldb_search() not take separate mem_ctx to push the
> > result onto?
> 
> Because it was thought with the idea you can talloc_steal() it if you
> need to keep around the result, while normally you just talloc_free()
> it.

Do you have any intention to change this in the future? 

To me this looks a bit unnatural and error-prone. Having an
explicit mem_ctx makes it easier to hook it to a
procedure-local temporary ctx and have it automatically
freed.

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20061204/9af692a6/attachment.bin


More information about the samba-technical mailing list