svn rev #23635: branches/krb5-1-7/src/lib/gssapi/krb5/
tlyu@MIT.EDU
tlyu at MIT.EDU
Mon Jan 11 21:50:09 EST 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=23635
Commit By: tlyu
Log Message:
ticket: 6558
version_fixed: 1.7.1
status: resolved
pull up r22718 from trunk
------------------------------------------------------------------------
r22718 | ghudson | 2009-09-09 11:17:09 -0400 (Wed, 09 Sep 2009) | 8 lines
ticket: 6558
subject: Fix memory leak in gss_krb5int_copy_ccache
tags: pullup
target_version: 1.7.1
gss_krb5int_copy_ccache was iterating over credentials in a ccache
without freeing them.
Changed Files:
U branches/krb5-1-7/src/lib/gssapi/krb5/copy_ccache.c
Modified: branches/krb5-1-7/src/lib/gssapi/krb5/copy_ccache.c
===================================================================
--- branches/krb5-1-7/src/lib/gssapi/krb5/copy_ccache.c 2010-01-12 02:50:04 UTC (rev 23634)
+++ branches/krb5-1-7/src/lib/gssapi/krb5/copy_ccache.c 2010-01-12 02:50:09 UTC (rev 23635)
@@ -50,8 +50,11 @@
krb5_free_context(context);
return(GSS_S_FAILURE);
}
- while (!code && !krb5_cc_next_cred(context, k5creds->ccache, &cursor, &creds))
+ while (!code && !krb5_cc_next_cred(context, k5creds->ccache, &cursor,
+ &creds)) {
code = krb5_cc_store_cred(context, out_ccache, &creds);
+ krb5_free_cred_contents(context, &creds);
+ }
krb5_cc_end_seq_get(context, k5creds->ccache, &cursor);
k5_mutex_unlock(&k5creds->lock);
*minor_status = code;
More information about the cvs-krb5
mailing list