resource leak in gss_krb5_copy_ccache
Morten Sylvest Olsen
mso at medical-insight.com
Tue Sep 8 07:11:29 EDT 2009
Hi,
I keep getting valgrind leaks reported when I use gss_krb5_copy_ccache.
Looking at the code, it seems there is a krb5_free_cred_contents
missing. Or I may be completely off the mark?
krb5-1.7/src/lib/gssapi/krb5:
..
code = krb5_cc_start_seq_get(context, k5creds->ccache, &cursor);
if (code) {
k5_mutex_unlock(&k5creds->lock);
*minor_status = code;
save_error_info(*minor_status, context);
krb5_free_context(context);
return(GSS_S_FAILURE);
}
while (!code && !krb5_cc_next_cred(context, k5creds->ccache,
&cursor, &creds))
code = krb5_cc_store_cred(context, out_ccache, &creds);
krb5_cc_end_seq_get(context, k5creds->ccache, &cursor);
--
Morten Sylvest Olsen, System Developer
Medical Insight A/S, Krumtappen 4,3.th,2500 Valby, Denmark
Phone:+4546550444, Mobile:+4551573092,Mail: mso at medical-insight.com
More information about the krbdev
mailing list