From: Theodore Tso Date: Fri, 31 Mar 1995 05:46:29 +0000 (+0000) Subject: Fix typo which caused new_keytab to not get freed, causing a memory X-Git-Tag: krb5-1.0-beta5~406 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=89c1a7383ef104b4540fba9ef355128d3cb47ab4;p=krb5.git 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 --- 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: