[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: krb5 mechanism OID; Was: Re: FW: memory leak in some Kerberos APIs?



> For the first problem, can you try this ?

don't you also need one here?

--buck

--- init_sec_context.c.lha	Fri Jun 13 12:34:38 2003
+++ init_sec_context.c	Fri Jun 13 12:35:45 2003
@@ -407,10 +407,12 @@
     if (ret)
 	goto failure;
 
     krb5_data_free (&outbuf);
 
+    krb5_free_creds(gssapi_krb5_context, cred);
+
     if (flags & GSS_C_MUTUAL_FLAG) {
 	return GSS_S_CONTINUE_NEEDED;
     } else {
 	if (time_rec)
 	    *time_rec = (*context_handle)->lifetime;