From: Andrew Bartlett Date: Wed, 29 Jun 2016 23:48:42 +0000 (-0700) Subject: lib: talloc: As we have a struct talloc_chunk * in _talloc_free_children_internal... X-Git-Tag: tdb-1.3.10~566 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f877191fee61bc066687154044c0af28e356ee27;p=thirdparty%2Fsamba.git lib: talloc: As we have a struct talloc_chunk * in _talloc_free_children_internal(), use it to call _tc_free_internal() directly. Signed-off-by: Andrew Bartlett Reviewed-by: Jeremy Allison --- diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c index cd0ec3d09e9..09318e9b5ae 100644 --- a/lib/talloc/talloc.c +++ b/lib/talloc/talloc.c @@ -1567,7 +1567,7 @@ static inline void _tc_free_children_internal(struct talloc_chunk *tc, struct talloc_chunk *p = talloc_parent_chunk(tc->child->refs); if (p) new_parent = TC_PTR_FROM_CHUNK(p); } - if (unlikely(_talloc_free_internal(child, location) == -1)) { + if (unlikely(_tc_free_internal(tc->child, location) == -1)) { if (talloc_parent_chunk(child) != tc) { /* * Destructor already reparented this child.