From: Alexandra Ellwood Date: Tue, 21 Oct 2008 21:54:00 +0000 (+0000) Subject: kim_ccache_iterator_next leaks principal X-Git-Tag: krb5-1.7-alpha1~278 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=47cc0299cec72ac9d653324b81262e64f0e8e5e6;p=krb5.git kim_ccache_iterator_next leaks principal ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20905 dc483132-0cff-0310-8789-dd5450dbe970 --- 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) {