From: Alexandra Ellwood Date: Thu, 5 Aug 1999 15:35:16 +0000 (+0000) Subject: Added free(creds) to deep_free_cc_v5_creds so that someone is freeing the cc_creds... X-Git-Tag: krb5-1.1-beta1~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=091b5a37b779b652f1dd47dfc014051e5606b03a;p=krb5.git 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 --- diff --git a/src/lib/krb5/ccache/ccapi/stdcc_util.c b/src/lib/krb5/ccache/ccapi/stdcc_util.c index 7acb60380..d6f41b069 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) {