From: Zhanna Tsitkov Date: Sat, 13 Dec 2008 00:05:33 +0000 (+0000) Subject: Fixed memory leak in krb5_stdccv3_remove X-Git-Tag: krb5-1.7-alpha1~169 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e1aeb84e941ebfee21440438e82782e867a664ce;p=krb5.git Fixed memory leak in krb5_stdccv3_remove Ticket: 6299 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21362 dc483132-0cff-0310-8789-dd5450dbe970 --- 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 (); }