From f877191fee61bc066687154044c0af28e356ee27 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 29 Jun 2016 16:48:42 -0700 Subject: [PATCH] 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 --- lib/talloc/talloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.34.1