[PATCH] parametric options

Andrew Bartlett abartlet at samba.org
Thu Jan 2 13:05:00 GMT 2003

On Thu, 2003-01-02 at 23:51, Stefan (metze) Metzmacher wrote:

> >This doesn't seem right - why not just free and replace that talloc
> >context?
> I only want to free one segment in the talloc context and all other 
> talloced memory in this talloc context should not be free'ed!
> > > a also add a view talloc_realloc_*() functions
> > >
> > > talloc_realloc_strdup() ...
> >
> >Why?
> If we have a struct witch is talloced
> and strings in the struct are talloced on the same talloc context should be 
> replaced, it would be fine to free the memory of the old string...:-)

Talloc doesn't work that way, and should not be made to work that way. 
If you want that, then you have malloc() and free().

Andrew Bartlett

Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20030102/185d20f0/attachment.bin

More information about the samba-technical mailing list