summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-03-21 15:55:04 +0100
committerVolker Lendecke <vl@samba.org>2010-03-21 17:12:23 +0100
commitd097d9fb09ff1f4acc4c8407a1a7903b6ef197de (patch)
tree16f2766bb29d8f7c62999781d29da9d7c5f0a19b
parent0f3040a61fc51434e07ed5a87a89eda25e196514 (diff)
downloadsamba-d097d9fb09ff1f4acc4c8407a1a7903b6ef197de.tar.gz
samba-d097d9fb09ff1f4acc4c8407a1a7903b6ef197de.tar.bz2
samba-d097d9fb09ff1f4acc4c8407a1a7903b6ef197de.zip
Use TALLOC_FREE in talloc_pop()
-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;