summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-15 14:39:11 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-15 15:08:24 +0100
commitd23581b4d7a4936002c1d2d748836aead9215120 (patch)
tree6dd37889a7f9264b6d1d0453f9453f009a17bc7d
parent10ed809a1a31be50ce09142eb99b3a243ae8b940 (diff)
downloadsamba-d23581b4d7a4936002c1d2d748836aead9215120.tar.gz
samba-d23581b4d7a4936002c1d2d748836aead9215120.tar.bz2
samba-d23581b4d7a4936002c1d2d748836aead9215120.zip
talloc_stack: reset stackframe pointers to NULL
This makes it easier to debug the code in future. metze
-rw-r--r--lib/util/talloc_stack.c2
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;
}