From 6b72eb700797fc9bc2d6ae3e5f561763e36a7a7e Mon Sep 17 00:00:00 2001 From: John Carr Date: Wed, 8 Apr 1992 15:15:26 +0000 Subject: [PATCH] Remove call to xfree (not needed and value freed might be uninitialized). Fix arg to malloc call (sizeof (x) should have been (x)). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2273 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/copy_tick.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/krb5/krb/copy_tick.c b/src/lib/krb5/krb/copy_tick.c index 9bcbcce23..0178a04d9 100644 --- a/src/lib/krb5/krb/copy_tick.c +++ b/src/lib/krb5/krb/copy_tick.c @@ -47,7 +47,6 @@ krb5_enc_tkt_part **partto; *tempto = *partfrom; if (retval = krb5_copy_keyblock(partfrom->session, &tempto->session)) { - xfree(tempto->session); xfree(tempto); return retval; } @@ -58,7 +57,7 @@ krb5_enc_tkt_part **partto; } tempto->transited = partfrom->transited; tempto->transited.tr_contents.data = - malloc(sizeof(partfrom->transited.tr_contents.length)); + malloc(partfrom->transited.tr_contents.length); if (!tempto->transited.tr_contents.data) { krb5_free_principal(tempto->client); krb5_free_keyblock(tempto->session); -- 2.26.2