diff options
-rw-r--r-- | source3/lib/dbwrap/dbwrap.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/source3/lib/dbwrap/dbwrap.c b/source3/lib/dbwrap/dbwrap.c index 80bd09bf43..c78ee747a7 100644 --- a/source3/lib/dbwrap/dbwrap.c +++ b/source3/lib/dbwrap/dbwrap.c @@ -149,9 +149,6 @@ static struct db_record *dbwrap_fetch_locked_internal( struct db_record *rec; struct dbwrap_lock_order_state *lock_order; TALLOC_CTX *frame = talloc_stackframe(); - if (!frame) { - return NULL; - } lock_order = dbwrap_check_lock_order(db, frame); if (lock_order == NULL) { @@ -242,9 +239,6 @@ NTSTATUS dbwrap_store(struct db_context *db, TDB_DATA key, struct db_record *rec; NTSTATUS status; TALLOC_CTX *frame = talloc_stackframe(); - if (!frame) { - return NT_STATUS_NO_MEMORY; - } rec = dbwrap_fetch_locked(db, frame, key); if (rec == NULL) { @@ -262,11 +256,8 @@ NTSTATUS dbwrap_delete(struct db_context *db, TDB_DATA key) struct db_record *rec; NTSTATUS status; TALLOC_CTX *frame = talloc_stackframe(); - if (!frame) { - return NT_STATUS_NO_MEMORY; - } - rec = dbwrap_fetch_locked(db, talloc_tos(), key); + rec = dbwrap_fetch_locked(db, frame, key); if (rec == NULL) { TALLOC_FREE(frame); return NT_STATUS_NO_MEMORY; |