From 89c1a7383ef104b4540fba9ef355128d3cb47ab4 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 31 Mar 1995 05:46:29 +0000 Subject: [PATCH] Fix typo which caused new_keytab to not get freed, causing a memory leak. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5317 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 5 +++++ src/lib/krb5/krb/rd_req.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 5322c1463..1e927a407 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +Fri Mar 31 00:44:26 1995 Theodore Y. Ts'o (tytso@dcl) + + * rd_req.c (krb5_rd_req): Fix typo which caused new_keytab to not + get freed, causing a memory leak. + Thu Mar 30 15:49:27 1995 Keith Vetter (keithv@fusion.com) * rd_req.c: removed unused local variable. diff --git a/src/lib/krb5/krb/rd_req.c b/src/lib/krb5/krb/rd_req.c index 7c569fb94..cd498a1a4 100644 --- a/src/lib/krb5/krb/rd_req.c +++ b/src/lib/krb5/krb/rd_req.c @@ -94,7 +94,7 @@ krb5_rd_req(context, auth_context, inbuf, server, keytab, retval = krb5_rd_req_decoded(context, auth_context, request, server, keytab, ap_req_options, ticket); - if (new_keytab == NULL) + if (new_keytab != NULL) (void) krb5_kt_close(context, new_keytab); cleanup_auth_context: -- 2.26.2