aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>1999-08-05 15:35:16 +0000
committerAlexandra Ellwood <lxs@mit.edu>1999-08-05 15:35:16 +0000
commit091b5a37b779b652f1dd47dfc014051e5606b03a (patch)
treef427094ac9dc4c68e81da22a3495e6f98a191acd
parent21964d83bbacfb52bc7e1cf40e3def2c048a9468 (diff)
downloadkrb5-091b5a37b779b652f1dd47dfc014051e5606b03a.zip
krb5-091b5a37b779b652f1dd47dfc014051e5606b03a.tar.gz
krb5-091b5a37b779b652f1dd47dfc014051e5606b03a.tar.bz2
Added free(creds) to deep_free_cc_v5_creds so that someone is freeing the cc_creds when a cred_union gets freed. Before it was leaking memory
I searched the k5 sources for folks calling deep_free_cc_v5_creds and my change seems to not break anything. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11620 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/lib/krb5/ccache/ccapi/stdcc_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/krb5/ccache/ccapi/stdcc_util.c b/src/lib/krb5/ccache/ccapi/stdcc_util.c
index 7acb603..d6f41b0 100644
--- a/src/lib/krb5/ccache/ccapi/stdcc_util.c
+++ b/src/lib/krb5/ccache/ccapi/stdcc_util.c
@@ -483,6 +483,8 @@ static void deep_free_cc_v5_creds (cc_creds* creds) {
deep_free_cc_data_array (creds -> addresses);
deep_free_cc_data_array (creds -> authdata);
+
+ free(creds);
}
static void deep_free_cc_creds (cred_union creds) {