Remove call to xfree (not needed and value freed might be
authorJohn Carr <jfc@mit.edu>
Wed, 8 Apr 1992 15:15:26 +0000 (15:15 +0000)
committerJohn Carr <jfc@mit.edu>
Wed, 8 Apr 1992 15:15:26 +0000 (15:15 +0000)
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

index 9bcbcce239ec256eaa0d18667905effeb87508d5..0178a04d9e0522a6128aaf5c4c22d6f7a3559505 100644 (file)
@@ -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);