From: Paul Park Date: Wed, 9 Aug 1995 21:26:24 +0000 (+0000) Subject: Fix memory leak X-Git-Tag: krb5-1.0-beta6~1342 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=422c9b7cb1299d2ef1ed5e69f8d3e71c858e17c1;p=krb5.git Fix memory leak git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6489 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/v5server/proto_serv.c b/src/kadmin/v5server/proto_serv.c index fe906c4ff..b8713be39 100644 --- a/src/kadmin/v5server/proto_serv.c +++ b/src/kadmin/v5server/proto_serv.c @@ -805,12 +805,12 @@ proto_serv(kcontext, my_id, cl_sock, sv_p, cl_p) alarm(0); if (ticket) krb5_free_ticket(kcontext, ticket); - if (rcache) { - krb5_rc_close(kcontext, rcache); - /* krb5_rc_destroy(kcontext, rcache); */ - } + /* + * Don't need to close the replay cache because it's attached to the + * auth context. + */ if (auth_context) - krb5_xfree(auth_context); + krb5_auth_con_free(kcontext, auth_context); if (curr_lang) free(curr_lang); if (num_args)