diff options
author | Julien Chaffraix <julien.chaffraix@gmail.com> | 2010-10-02 00:33:24 -0700 |
---|---|---|
committer | Julien Chaffraix <julien.chaffraix@gmail.com> | 2010-10-02 10:00:42 -0700 |
commit | 4b69f641a6aea8027e948d3e08ccffda307059b5 (patch) | |
tree | 82b2613b3d3600d231d621a7cc5f4027cd6f11fe /lib/ftp.c | |
parent | 2ae6c47d5dfdff2d6d884284beb6b0322e8ac671 (diff) |
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.
Diffstat (limited to 'lib/ftp.c')
-rw-r--r-- | lib/ftp.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; } |