because copying could require lots of memory allocations.
So even if talloc_steal() is inefficient, it's likely not much
worse than allocating and copying entire data structures
MEM(arg = xlat_exp_alloc(head, XLAT_GROUP, vpt->name, strlen(vpt->name)));
- /*
- * This is less efficient than just stealing the
- * xlat into the context of the new node...
- *
- * But talloc_steal can be extremely inefficient O(N)
- * where N is chunk siblings.
- */
- xlat_copy(arg->group, arg->group, xlat);
+ talloc_steal(arg->group, xlat);
+ arg->group = xlat;
arg->quote = quote;
arg->flags = xlat->flags;