Fix memory leak
authorPaul Park <pjpark@mit.edu>
Wed, 9 Aug 1995 21:26:24 +0000 (21:26 +0000)
committerPaul Park <pjpark@mit.edu>
Wed, 9 Aug 1995 21:26:24 +0000 (21:26 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6489 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/v5server/proto_serv.c

index fe906c4fff1052e745fc9e1f9071aecf744c316b..b8713be397690c96e89820b9ade177add5583774 100644 (file)
@@ -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)