From a3dd28c635206272673ea1f62b35121c7e808db4 Mon Sep 17 00:00:00 2001 From: Swen Schillig Date: Wed, 21 Nov 2018 10:21:46 +0100 Subject: [PATCH] smbspool: Free kerberos context on error If processing cannot continue and the function returns the kerberos context must be free'd. Signed-off-by: Swen Schillig Reviewed-by: Andreas Schneider Reviewed-by: Ralph Boehme --- source3/client/smbspool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c index 389e4ea553f..58ce6c56177 100644 --- a/source3/client/smbspool.c +++ b/source3/client/smbspool.c @@ -523,6 +523,7 @@ static bool kerberos_ccache_is_valid(void) { ccache_name = krb5_cc_default_name(ctx); if (ccache_name == NULL) { + krb5_free_context(ctx); return false; } -- 2.34.1