From: John Kohl Date: Wed, 20 Feb 1991 18:20:42 +0000 (+0000) Subject: plug memory leak X-Git-Tag: krb5-1.0-alpha4~224 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2371e92e9d6bede03d9a311d92a415a6710addc0;p=krb5.git plug memory leak git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1748 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/stdio/scc_retrv.c b/src/lib/krb5/ccache/stdio/scc_retrv.c index f04ec1f11..991628441 100644 --- a/src/lib/krb5/ccache/stdio/scc_retrv.c +++ b/src/lib/krb5/ccache/stdio/scc_retrv.c @@ -166,7 +166,7 @@ krb5_scc_retrieve(id, whichfields, mcreds, creds) } /* This one doesn't match */ - /* XXX krb5_free_credentials(creds); */ + krb5_free_cred_contents(fetchcreds); } /* If we get here, a match wasn't found */ diff --git a/src/lib/krb5/ccache/stdio/scc_skip.c b/src/lib/krb5/ccache/stdio/scc_skip.c index bd14c3511..0b26b64a0 100644 --- a/src/lib/krb5/ccache/stdio/scc_skip.c +++ b/src/lib/krb5/ccache/stdio/scc_skip.c @@ -29,7 +29,7 @@ krb5_scc_skip_principal(id) if (kret != KRB5_OK) return kret; - /* XXX krb5_destroy_principal(&princ); */ + krb5_free_principal(&princ); return KRB5_OK; }