diff options
author | Volker Lendecke <vl@samba.org> | 2019-11-13 16:29:17 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-11-14 22:26:30 +0000 |
commit | 4320196977012e02765f4804070438149d858e22 (patch) | |
tree | 7e5f1ae93a70db431ff15db50dbe4e4d6e98dab2 | |
parent | b1143a0c7e9080996bb47b52df9124d296e4345b (diff) | |
download | samba-4320196977012e02765f4804070438149d858e22.tar.gz |
lib: Fix an error path memleak in schannel_get_creds_state()
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | libcli/auth/schannel_state_tdb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcli/auth/schannel_state_tdb.c b/libcli/auth/schannel_state_tdb.c index ce20012ac22..e0ac8a378a0 100644 --- a/libcli/auth/schannel_state_tdb.c +++ b/libcli/auth/schannel_state_tdb.c @@ -236,6 +236,7 @@ NTSTATUS schannel_get_creds_state(TALLOC_CTX *mem_ctx, db_sc = open_schannel_session_store(tmpctx, lp_ctx); if (!db_sc) { + TALLOC_FREE(tmpctx); return NT_STATUS_ACCESS_DENIED; } |