1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

s3:idmap_tdb: simplify talloc usage with temp context from talloc_stackframe

Michael
This commit is contained in:
Michael Adam 2009-01-26 13:17:49 +01:00
parent 77b4437b12
commit 9c626e37cf

View File

@ -258,14 +258,10 @@ static NTSTATUS idmap_tdb_open_db(TALLOC_CTX *memctx,
}
/* use our own context here */
ctx = talloc_new(memctx);
if (!ctx) {
DEBUG(0, ("Out of memory!\n"));
return NT_STATUS_NO_MEMORY;
}
ctx = talloc_stackframe();
/* use the old database if present */
tdbfile = talloc_strdup(ctx, state_path("winbindd_idmap.tdb"));
tdbfile = state_path("winbindd_idmap.tdb");
if (!tdbfile) {
DEBUG(0, ("Out of memory!\n"));
ret = NT_STATUS_NO_MEMORY;