From 6111ecd87fd97dc76958acfa44fcc58e55a20398 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 24 Dec 1993 22:54:05 +0000 Subject: [PATCH] krb5_close_rcache will now free rcache git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3282 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/rcache/rc_dfl.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/krb5/rcache/rc_dfl.c b/src/lib/krb5/rcache/rc_dfl.c index e667eb17c..7cec3df2d 100644 --- a/src/lib/krb5/rcache/rc_dfl.c +++ b/src/lib/krb5/rcache/rc_dfl.c @@ -200,7 +200,7 @@ krb5_deltat lifespan; return 0; } -krb5_error_code krb5_rc_dfl_close(id) +krb5_error_code krb5_rc_dfl_close_no_free(id) krb5_rcache id; { struct dfl_data *t = (struct dfl_data *)id->data; @@ -222,6 +222,14 @@ krb5_rcache id; return 0; } +krb5_error_code krb5_rc_dfl_close(id) +krb5_rcache id; +{ + krb5_rc_dfl_close_no_free(id); + free(id); + return 0; +} + krb5_error_code krb5_rc_dfl_destroy(id) krb5_rcache id; { @@ -501,7 +509,7 @@ krb5_rcache id; krb5_rcache tmp; krb5_deltat lifespan = t->lifespan; /* save original lifespan */ - (void) krb5_rc_dfl_close(id); + (void) krb5_rc_dfl_close_no_free(id); retval = krb5_rc_dfl_resolve(id, name); if (retval) return retval; -- 2.26.2