Cleanup usage of memory free routines:
authorDanilo Almeida <dalmeida@mit.edu>
Fri, 22 Jun 2001 07:51:38 +0000 (07:51 +0000)
committerDanilo Almeida <dalmeida@mit.edu>
Fri, 22 Jun 2001 07:51:38 +0000 (07:51 +0000)
commita30fb4c4400f13a2690df7ef910b7ac0ccbcf194
tree436593ebf24a093a3b5569f991480daf8adbdc45
parent0573a7bb339f68f0fa5556e71e46dfda6a149f98
Cleanup usage of memory free routines:

* util_crypt.c (kg_encrypt, kg_decrypt): Use free() instead of
krb5_free_data_contents().

* util_cksum.c (kg_checksum_channel_bindings): Make sure that
returned memory is allocated with xmalloc() so that caller can use
xfree() on it.

* k5unseal.c (kg_unseal_v1):  Use krb5_free_data_contents()
instead of xfree().

* k5seal.c (make_seal_token_v1): Use krb5_free_data_contents()
instead of xfree().

* init_sec_context.c (make_ap_req_v1): Use xfree() instead of
free() to be consistent with xmalloc() usage.  Use
krb5_free_data_contents() instead of xfree().

* disp_name.c (krb5_gss_display_name): Use
krb5_free_unparsed_name() instead of xfree().

* add_cred.c (krb5_gss_add_cred): Use xfree() instead of free() to
be consistent with xmalloc() usage.

* accept_sec_context.c (krb5_gss_accept_sec_context): Remove
variables that were effectively unused.  Use
krb5_free_data_contents() instead of xfree() where appropriate.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13482 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/accept_sec_context.c
src/lib/gssapi/krb5/add_cred.c
src/lib/gssapi/krb5/disp_name.c
src/lib/gssapi/krb5/init_sec_context.c
src/lib/gssapi/krb5/k5seal.c
src/lib/gssapi/krb5/k5unseal.c
src/lib/gssapi/krb5/util_cksum.c
src/lib/gssapi/krb5/util_crypt.c