From: Swen Schillig Date: Wed, 21 Nov 2018 09:21:46 +0000 (+0100) Subject: smbspool: Free kerberos context on error X-Git-Tag: tdb-1.3.17~680 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3dd28c635206272673ea1f62b35121c7e808db4;p=thirdparty%2Fsamba.git 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 --- 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; }