From: Theodore Tso Date: Fri, 24 Dec 1993 22:54:05 +0000 (+0000) Subject: krb5_close_rcache will now free rcache X-Git-Tag: krb5-1.0-beta3~66 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6111ecd87fd97dc76958acfa44fcc58e55a20398;p=krb5.git krb5_close_rcache will now free rcache git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3282 dc483132-0cff-0310-8789-dd5450dbe970 --- 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;