diff options
-rw-r--r-- | lib/util/talloc_stack.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/util/talloc_stack.c b/lib/util/talloc_stack.c index 58d22e378a..f34d495294 100644 --- a/lib/util/talloc_stack.c +++ b/lib/util/talloc_stack.c @@ -103,8 +103,10 @@ static int talloc_pop(TALLOC_CTX *frame) break; } talloc_free(ts->talloc_stack[i]); + ts->talloc_stack[i] = NULL; } + ts->talloc_stack[i] = NULL; ts->talloc_stacksize = i; return 0; } |