* $Source$
* $Author$
*
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
"$Id$";
#endif /* !lint & !SABER */
-#include <krb5/copyright.h>
#include "krb425.h"
int
EPRINT "Return to long (%d > %d)\n",
outbuf.length, MAX_KTXT_LEN);
#endif
- free((char *)outbuf.data);
+ xfree(outbuf.data);
return(KFAILURE);
}
authent->length = outbuf.length;
memcpy((char *)authent->dat, (char *)outbuf.data, outbuf.length);
- free((char *)outbuf.data);
+ xfree(outbuf.data);
}
return(krb425error(r));
}
* $Source$
* $Author$
*
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
"$Id$";
#endif /* !lint & !SABER */
-#include <krb5/copyright.h>
#include "krb425.h"
int
if (cvt) {
if (keyblock.contents)
- free((char *)keyblock.contents);
+ xfree(keyblock.contents);
mit_des_string_to_key(KEYTYPE_DES, &keyblock, 0, 0);
} else {
if (!keyblock.contents &&
* $Source$
* $Author$
*
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
"$Id$";
#endif /* !lint & !SABER */
-#include <krb5/copyright.h>
#include <krb5/krb5.h>
#include <krb5/ext-proto.h>
#include <krb5/libos-proto.h>
*key,
&arg->password,
&salt)) {
- free((char *) *key);
+ xfree(*key);
if (f_salt) xfree(salt.data);
return(retval);
}
* $Source$
* $Author$
*
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
"$Id$";
#endif /* !lint & !SABER */
-#include <krb5/copyright.h>
-
#include <krb5/krb5.h>
#include <krb5/asn1.h>
if (retval = encode_krb5_error(dec_err, &new_enc_err))
return(retval);
*enc_err = *new_enc_err;
- (void)free((char *)new_enc_err);
+ xfree(new_enc_err);
return 0;
}
* $Source$
* $Author$
*
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
"$Id$";
#endif /* !lint & !SABER */
-#include <krb5/copyright.h>
#include <krb5/krb5.h>
#include <krb5/asn1.h>
#include <krb5/libos-proto.h>
cleanup_encpart();
*outbuf = *scratch;
- free((char *)scratch);
+ xfree(scratch);
return 0;
clean_prockey:
* $Source$
* $Author$
*
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
"$Id$";
#endif /* !lint & !SABER */
-#include <krb5/copyright.h>
#include <krb5/krb5.h>
-
#include <krb5/asn1.h>
#include <krb5/libos-proto.h>
#include <krb5/ext-proto.h>
}
xfree(safe_checksum.contents);
*outbuf = *scratch;
- free((char *)scratch);
+ xfree(scratch);
return 0;
}
* $Source$
* $Author$
*
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
"$Id$";
#endif /* !lint & !SABER */
-#include <krb5/copyright.h>
-
#include <krb5/krb5.h>
#include <krb5/ext-proto.h>
for (cp = hostlist; *cp; cp++)
free(*cp);
- free((char *)hostlist);
+ xfree(hostlist);
return 0;
}
* $Source$
* $Author$
*
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
"$Id$";
#endif /* !lint & !SABER */
-#include <krb5/copyright.h>
-
#include <krb5/krb5.h>
#include <krb5/ext-proto.h>
#include <stdio.h>
if (!rethlist[hlindex]) {
for (--hlindex; hlindex >= 0; hlindex--)
free(rethlist[hlindex]);
- free((char *) rethlist);
+ xfree(rethlist);
rethlist = 0;
retval = ENOMEM;
break;
(void) fclose(config_file);
if (hlindex == 0) {
- free((char *)rethlist);
+ xfree(rethlist);
rethlist = 0;
retval = KRB5_REALM_UNKNOWN;
}
* $Source$
* $Author$
*
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
"$Id$";
#endif /* !lint & !SABER */
-#include <krb5/copyright.h>
#include <krb5/krb5.h>
#include <krb5/osconf.h>
address->length = sizeof(struct in_addr);
address->contents = (unsigned char *)malloc(address->length);
if (!address->contents) {
- free((char *)address);
+ xfree(address);
address = 0;
mem_err++;
} else {
address->length = sizeof(struct ns_addr);
address->contents = (unsigned char *)malloc(address->length);
if (!address->contents) {
- free((char *)address);
+ xfree(address);
address = 0;
mem_err++;
} else {
if (mem_err) {
for (i=0; i<n_found; i++) {
- free((char *)addr_temp[i]);
+ xfree(addr_temp[i]);
addr_temp[i] = 0;
}
return ENOMEM;
* $Source$
* $Author$
*
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
"$Id$";
#endif /* lint */
-#include <krb5/copyright.h>
-
#include <krb5/krb5.h>
#include <stdio.h>
/* interrupted */
if (readin_string) {
(void) memset((char *)readin_string, 0, *size_return);
- free((char *)readin_string);
+ xfree(readin_string);
}
(void) memset(return_pwd, 0, *size_return);
cleanup(KRB5_LIBOS_PWDINTR);
(void) putchar('\n');
(void) memset((char *)readin_string, 0, *size_return);
(void) memset(return_pwd, 0, *size_return);
- free((char *)readin_string);
+ xfree(readin_string);
cleanup(KRB5_LIBOS_CANTREADPWD);
}
(void) putchar('\n');
if (strncmp(return_pwd, (char *)readin_string, *size_return)) {
(void) memset((char *)readin_string, 0, *size_return);
(void) memset(return_pwd, 0, *size_return);
- free((char *)readin_string);
+ xfree(readin_string);
cleanup(KRB5_LIBOS_BADPWDMATCH);
}
(void) memset((char *)readin_string, 0, *size_return);
- free((char *)readin_string);
+ xfree(readin_string);
}
/* reset intrfunc */
* $Source$
* $Author$
*
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
"$Id$";
#endif /* !lint & !SABER */
-#include <krb5/copyright.h>
-
#include <krb5/krb5.h>
#include <krb5/ext-proto.h>
socklist[i] = -1;
if (!(reply->data = malloc(krb5_max_dgram_size))) {
- free((char *)addr);
+ xfree(addr);
return ENOMEM;
}
reply->length = krb5_max_dgram_size;
for (i = 0; i < AF_MAX; i++)
if (socklist[i] != -1)
(void) close(socklist[i]);
- free((char *)addr);
+ xfree(addr);
if (retval) {
free(reply->data);
reply->data = 0;