From 47cc0299cec72ac9d653324b81262e64f0e8e5e6 Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Tue, 21 Oct 2008 21:54:00 +0000 Subject: [PATCH] kim_ccache_iterator_next leaks principal ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20905 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kim/lib/kim_ccache.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kim/lib/kim_ccache.c b/src/kim/lib/kim_ccache.c index 26e926d3b..cf6a18315 100644 --- a/src/kim/lib/kim_ccache.c +++ b/src/kim/lib/kim_ccache.c @@ -108,6 +108,9 @@ kim_error kim_ccache_iterator_next (kim_ccache_iterator in_ccache_iterator, ccache = NULL; err = KIM_NO_ERROR; } + + if (principal) { krb5_free_principal (in_ccache_iterator->context, + principal); } } if (!err) { -- 2.26.2