krb5_close_rcache will now free rcache
authorTheodore Tso <tytso@mit.edu>
Fri, 24 Dec 1993 22:54:05 +0000 (22:54 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 24 Dec 1993 22:54:05 +0000 (22:54 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3282 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/rcache/rc_dfl.c

index e667eb17cd13983d9f97bbf66b267f29985630b7..7cec3df2d0c647fc20713e6c83e9fd59f4e85a19 100644 (file)
@@ -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;