hierarchical memory in PIDL generated code

Jelmer Vernooij jelmer at samba.org
Sun Aug 21 00:01:18 GMT 2005

Hi Metze,

On Wed, Aug 17, 2005 at 09:45:13AM +0200, Stefan (metze) Metzmacher wrote about 'hierarchical memory in PIDL generated code':
> and as structures like dom_sid contain buffer inside of them
> (or more complex stuff like security_descriptor or security_token)

> a talloc_steal(my_mem_cty, r->out.domain_sid) can't work, as
> r->out.domain_sid->sub_auth is not a child of r->out.domain_sid

> and if the ndr context is free'd you got a segv when you try to derefrence domain_sid->sub_auth.

> any ideas, how to solve that?

> maybe we could add a TALLOC_CTX *mem_ctx to each pidl generated pull function,
> and use this, instead of always use the ndr context
Sorry for the late reply... apparently you've already solved this
problem :-) Just saw your commit for this (r9373), looks good!



Jelmer Vernooij <jelmer at samba.org> - http://jelmer.vernstok.nl/
Just 561 more Samba commits left before r10000!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20050821/da445f67/attachment.bin

More information about the samba-technical mailing list