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 [EMAIL PROTECTED] Manager, Authentication Subsystems, Samba Team [EMAIL PROTECTED] Student Network Administrator, Hawker College [EMAIL PROTECTED] http://samba.org http://build.samba.org http://hawkerc.net
signature.asc
Description: This is a digitally signed message part
