+Sat Apr 29 00:09:40 1995 Theodore Y. Ts'o <tytso@dcl>
+
+ * rd_priv.c (krb5_rd_priv_basic): Call krb5_free_priv_enc_part to free
+ the entire privenc_msg structure.
Fri Apr 28 09:54:51 EDT 1995 Paul Park (pjpark@mit.edu)
retval = 0;
cleanup_data:;
- if (retval) {
- memset(privmsg_enc_part->user_data.data, 0,
- privmsg_enc_part->user_data.length);
- krb5_xfree(privmsg_enc_part->user_data.data);
- }
- krb5_xfree(privmsg_enc_part);
+ if (retval == 0)
+ privmsg_enc_part->user_data.data = 0;
+ krb5_free_priv_enc_part(context, privmsg_enc_part);
cleanup_scratch:;
memset(scratch.data, 0, scratch.length);