From b552c44b79e823011991feff0c55e8a7a9a93f8a Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 13 Sep 2005 21:26:25 +0000 Subject: r10211: Fix another memleak (this time in the kerberos keytab code) Guenther (This used to be commit 9796bf45895681fee243ca8fd8297ff270c7547c) --- source3/libads/kerberos_verify.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3/libads') 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")); -- cgit