krb5-gssapi: Delete the GSS-API context.

This fixes a memory leak related to the GSS-API code.

Added a krb5_init and krb5_end functions. Also removed a work-around
the lack of proper initialization of the GSS-API context.
This commit is contained in:
Julien Chaffraix
2010-10-02 00:33:24 -07:00
parent 2ae6c47d5d
commit 4b69f641a6
2 changed files with 26 additions and 3 deletions

View File

@@ -3860,6 +3860,10 @@ static CURLcode ftp_disconnect(struct connectdata *conn)
Curl_pp_disconnect(pp);
#if defined(HAVE_KRB4) || defined(HAVE_GSSAPI)
Curl_sec_end(conn);
#endif
return CURLE_OK;
}