credentials: Fix an error path memleak
authorVolker Lendecke <vl@samba.org>
Wed, 21 Nov 2018 14:24:24 +0000 (15:24 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 28 Nov 2018 16:44:14 +0000 (17:44 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
auth/credentials/credentials_krb5.c

index 3f142f7..a683caf 100644 (file)
@@ -351,6 +351,7 @@ _PUBLIC_ int cli_credentials_set_ccache(struct cli_credentials *cred,
 
                if (ret) {
                        (*error_string) = error_message(ret);
+                       TALLOC_FREE(ccc);
                        return ret;
                }