summaryrefslogtreecommitdiffstats
path: root/src/slave/kprop.c
diff options
context:
space:
mode:
authorRichard Basch <probe@mit.edu>1997-02-18 23:35:19 +0000
committerRichard Basch <probe@mit.edu>1997-02-18 23:35:19 +0000
commit8d1cdd087d2da9225d452a3eba8779ef6afc73c4 (patch)
tree93d339bff4fd71926377b5c811275b81378f2316 /src/slave/kprop.c
parentab78e04bf77d0e879edd962f69ab6d29df7cee8a (diff)
downloadkrb5-8d1cdd087d2da9225d452a3eba8779ef6afc73c4.tar.gz
krb5-8d1cdd087d2da9225d452a3eba8779ef6afc73c4.tar.xz
krb5-8d1cdd087d2da9225d452a3eba8779ef6afc73c4.zip
Remove krb5_xfree from the public interface
Implement krb5_free_data & krb5_free_data_contents to cleanup krb5_data structures and data contents allocated by the krb5 library. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9904 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/slave/kprop.c')
-rw-r--r--src/slave/kprop.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/slave/kprop.c b/src/slave/kprop.c
index 0ddcc2fb1..d804ea092 100644
--- a/src/slave/kprop.c
+++ b/src/slave/kprop.c
@@ -546,11 +546,11 @@ xmit_database(context, auth_context, my_creds, fd, database_fd, database_size)
exit(1);
}
if (retval = krb5_write_message(context, (void *) &fd, &outbuf)) {
- krb5_xfree(outbuf.data);
+ krb5_free_data_contents(context, &outbuf);
com_err(progname, retval, "while sending database size");
exit(1);
}
- krb5_xfree(outbuf.data);
+ krb5_free_data_contents(context, &outbuf);
/*
* Initialize the initial vector.
*/
@@ -577,13 +577,13 @@ xmit_database(context, auth_context, my_creds, fd, database_fd, database_size)
exit(1);
}
if (retval = krb5_write_message(context, (void *)&fd,&outbuf)) {
- krb5_xfree(outbuf.data);
+ krb5_free_data_contents(context, &outbuf);
com_err(progname, retval,
"while sending database block starting at %d",
sent_size);
exit(1);
}
- krb5_xfree(outbuf.data);
+ krb5_free_data_contents(context, &outbuf);
sent_size += n;
if (debug)
printf("%d bytes sent.\n", sent_size);
@@ -674,7 +674,7 @@ send_error(context, my_creds, fd, err_text, err_code)
strcpy(error.text.data, text);
if (!krb5_mk_error(context, &error, &outbuf)) {
(void) krb5_write_message(context, (void *)&fd,&outbuf);
- krb5_xfree(outbuf.data);
+ krb5_free_data_contents(context, &outbuf);
}
free(error.text.data);
}