Skip to content

Commit

Permalink
Added free(creds) to deep_free_cc_v5_creds so that someone is freeing…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
lxs committed Aug 5, 1999
1 parent bc592f5 commit f971e4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/krb5/ccache/ccapi/stdcc_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f971e4a

Please sign in to comment.