From 2371e92e9d6bede03d9a311d92a415a6710addc0 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 20 Feb 1991 18:20:42 +0000 Subject: [PATCH] plug memory leak git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1748 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/stdio/scc_retrv.c | 2 +- src/lib/krb5/ccache/stdio/scc_skip.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.26.2