summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-09-13 21:26:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:03:37 -0500
commitb552c44b79e823011991feff0c55e8a7a9a93f8a (patch)
tree637867d60d474d8a311bb7fc687247633ca45c43 /source3/libads
parent2d878a4b6d66663938e3540b9726ce158ec9a253 (diff)
downloadsamba-b552c44b79e823011991feff0c55e8a7a9a93f8a.tar.gz
samba-b552c44b79e823011991feff0c55e8a7a9a93f8a.tar.bz2
samba-b552c44b79e823011991feff0c55e8a7a9a93f8a.zip
r10211: Fix another memleak (this time in the kerberos keytab code)
Guenther (This used to be commit 9796bf45895681fee243ca8fd8297ff270c7547c)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/kerberos_verify.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/libads/kerberos_verify.c b/source3/libads/kerberos_verify.c
index d6cca79318..d0dcdc5e00 100644
--- a/source3/libads/kerberos_verify.c
+++ b/source3/libads/kerberos_verify.c
@@ -128,7 +128,11 @@ static BOOL ads_keytab_verify_ticket(krb5_context context, krb5_auth_context aut
ZERO_STRUCT(kt_cursor);
out:
-
+
+ for (i = 0; i < sizeof(valid_princ_formats) / sizeof(valid_princ_formats[0]); i++) {
+ SAFE_FREE(valid_princ_formats[i]);
+ }
+
if (!auth_ok) {
if (!number_matched_principals) {
DEBUG(3, ("ads_keytab_verify_ticket: no keytab principals matched expected file service name.\n"));