From e1aeb84e941ebfee21440438e82782e867a664ce Mon Sep 17 00:00:00 2001 From: Zhanna Tsitkov Date: Sat, 13 Dec 2008 00:05:33 +0000 Subject: [PATCH] Fixed memory leak in krb5_stdccv3_remove Ticket: 6299 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21362 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/ccapi/stdcc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/ccache/ccapi/stdcc.c b/src/lib/krb5/ccache/ccapi/stdcc.c index de5de4dd5..14569fb59 100644 --- a/src/lib/krb5/ccache/ccapi/stdcc.c +++ b/src/lib/krb5/ccache/ccapi/stdcc.c @@ -5,7 +5,7 @@ * Written by Frank Dabek July 1998 * Updated by Jeffrey Altman June 2006 * - * Copyright 1998, 1999, 2006 by the Massachusetts Institute of Technology. + * Copyright 1998, 1999, 2006, 2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -848,6 +848,10 @@ krb5_stdccv3_remove (krb5_context context, } if (err == ccIteratorEnd) { err = ccErrCredentialsNotFound; } + if (iterator) { + err = cc_credentials_iterator_release(iterator); + } + if (!err) { cache_changed (); } -- 2.26.2