1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

talloc_stack: reset stackframe pointers to NULL

This makes it easier to debug the code in future.

metze
This commit is contained in:
Stefan Metzmacher 2010-03-15 14:39:11 +01:00
parent 10ed809a1a
commit d23581b4d7

View File

@ -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;
}