diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-15 14:39:11 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2010-03-15 16:04:56 +0100 |
commit | 29eb47bdaf9a80e819c30e4c1fac9d07040d32bc (patch) | |
tree | 863e81838eaacf82023dc20423faefdea670c120 /lib | |
parent | 0c0e54cbb967150b91b3d83fb75c8c971875cb21 (diff) | |
download | samba-29eb47bdaf9a80e819c30e4c1fac9d07040d32bc.tar.gz |
talloc_stack: reset stackframe pointers to NULL
This makes it easier to debug the code in future.
metze
(cherry picked from commit d23581b4d7a4936002c1d2d748836aead9215120)
Diffstat (limited to 'lib')
-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 58d22e378a6..f34d495294a 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; } |