summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-16 16:29:46 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-16 17:11:48 +0100
commitbdc0372f8a6116b3be7cd8bd6d398c0f1929ae68 (patch)
treea8408f9fcecfcfa95775870b51277225cf521e28 /source4/auth
parent36175be5d4dbbd1545db4ac7de98d9293b897188 (diff)
downloadsamba-bdc0372f8a6116b3be7cd8bd6d398c0f1929ae68.tar.gz
samba-bdc0372f8a6116b3be7cd8bd6d398c0f1929ae68.tar.bz2
samba-bdc0372f8a6116b3be7cd8bd6d398c0f1929ae68.zip
s4:auth/kerberos/kerberos.c - fix also here a memory leak
The options need to be freed also on this error case.
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/kerberos/kerberos.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/auth/kerberos/kerberos.c b/source4/auth/kerberos/kerberos.c
index 8df54cc8b4..d4549ee88a 100644
--- a/source4/auth/kerberos/kerberos.c
+++ b/source4/auth/kerberos/kerberos.c
@@ -100,6 +100,7 @@
if ((code = krb5_get_init_creds_password(ctx, &my_creds, principal, password,
NULL,
NULL, 0, NULL, options))) {
+ krb5_get_init_creds_opt_free(ctx, options);
return code;
}