1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-21 01:59:07 +03:00

registry: use talloc_stackframe instead of hand crafted temporary context.

Michael
This commit is contained in:
Michael Adam 2008-03-17 01:27:27 +01:00
parent 860316cbe7
commit e4f2c856ec

View File

@ -912,15 +912,11 @@ static WERROR regdb_set_secdesc(const char *key,
struct security_descriptor *secdesc)
{
prs_struct ps;
TALLOC_CTX *mem_ctx;
TALLOC_CTX *mem_ctx = talloc_stackframe();
char *tdbkey;
WERROR err = WERR_NOMEM;
TDB_DATA tdbdata;
if (!(mem_ctx = talloc_init("regdb_set_secdesc"))) {
return WERR_NOMEM;
}
ZERO_STRUCT(ps);
if (!(tdbkey = talloc_asprintf(mem_ctx, "%s/%s", REG_SECDESC_PREFIX,