plug memory leak
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24162 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -587,6 +587,7 @@ _kdc_do_digest(krb5_context context,
|
|||||||
KRB5_KU_DIGEST_OPAQUE,
|
KRB5_KU_DIGEST_OPAQUE,
|
||||||
buf.data, buf.length, &res);
|
buf.data, buf.length, &res);
|
||||||
free_Checksum(&res);
|
free_Checksum(&res);
|
||||||
|
krb5_data_free(&buf);
|
||||||
krb5_crypto_destroy(context, crypto);
|
krb5_crypto_destroy(context, crypto);
|
||||||
crypto = NULL;
|
crypto = NULL;
|
||||||
if (ret)
|
if (ret)
|
||||||
@@ -1170,6 +1171,8 @@ _kdc_do_digest(krb5_context context,
|
|||||||
krb5_set_error_message(context, ret, "NTLM storage read flags");
|
krb5_set_error_message(context, ret, "NTLM storage read flags");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
krb5_storage_free(sp);
|
||||||
|
sp = NULL;
|
||||||
krb5_data_free(&buf);
|
krb5_data_free(&buf);
|
||||||
|
|
||||||
if ((flags & NTLM_NEG_NTLM) == 0) {
|
if ((flags & NTLM_NEG_NTLM) == 0) {
|
||||||
|
Reference in New Issue
Block a user