diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/session.c b/source3/smbd/session.c index d5973ef5c3..6b1bb0cbee 100644 --- a/source3/smbd/session.c +++ b/source3/smbd/session.c @@ -192,10 +192,11 @@ BOOL session_claim(user_struct *vuser) status = rec->store(rec, data, TDB_REPLACE); + TALLOC_FREE(rec); + if (!NT_STATUS_IS_OK(status)) { DEBUG(1,("session_claim: unable to create session id " "record: %s\n", nt_errstr(status))); - TALLOC_FREE(rec); return False; } |