summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util/talloc_stack.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/util/talloc_stack.c b/lib/util/talloc_stack.c
index c11a88dda5..8e559cc20f 100644
--- a/lib/util/talloc_stack.c
+++ b/lib/util/talloc_stack.c
@@ -100,8 +100,7 @@ static int talloc_pop(TALLOC_CTX *frame)
if (frame == ts->talloc_stack[i]) {
break;
}
- talloc_free(ts->talloc_stack[i]);
- ts->talloc_stack[i] = NULL;
+ TALLOC_FREE(ts->talloc_stack[i]);
}
ts->talloc_stack[i] = NULL;