krb5-gssapi: Remove several memory leaks.
authorJulien Chaffraix <julien.chaffraix@gmail.com>
Mon, 27 Sep 2010 05:44:42 +0000 (22:44 -0700)
committerJulien Chaffraix <julien.chaffraix@gmail.com>
Wed, 29 Sep 2010 05:05:24 +0000 (22:05 -0700)
commit87badbef846c29359f2981076d53acd108b57254
treeadc5bf60fa2fb04cd08eab05a887286276536122
parente3811ed7c34ed1818dc246af54460fea0fc52c02
krb5-gssapi: Remove several memory leaks.

Remove a leak seen on Kerberos/MIT (gss_OID is copied internally and
we were leaking it). Now we just pass NULL as advised in RFC2744.

|tmp| was never set back to buf->data.

Cleaned up Curl_sec_end to take into account failure in Curl_sec_login
(where conn->mech would be NULL but not conn->app_data or
conn->in_buffer->data).
lib/krb5.c
lib/security.c