summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/krb/copy_key.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/krb5/krb/copy_key.c')
-rw-r--r--src/lib/krb5/krb/copy_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/copy_key.c b/src/lib/krb5/krb/copy_key.c
index 1bb04c1993..e7fc2772a1 100644
--- a/src/lib/krb5/krb/copy_key.c
+++ b/src/lib/krb5/krb/copy_key.c
@@ -41,7 +41,7 @@ krb5_copy_keyblock(krb5_context context, const krb5_keyblock *from, krb5_keybloc
return ENOMEM;
*new_key = *from;
if (!(new_key->contents = (krb5_octet *)malloc(new_key->length))) {
- krb5_xfree(new_key);
+ free(new_key);
return(ENOMEM);
}
memcpy((char *)new_key->contents, (char *)from->contents,