free(d3.data);
free(salt.data);
free(plaintext.data);
+ krb5_k_free_key(NULL, k3key);
return (ret);
}
/* Free the derived key cache. */
while ((dk = key->derived) != NULL) {
key->derived = dk->next;
+ free(dk->constant.data);
krb5_k_free_key(context, dk->dkey);
free(dk);
}
krb5int_c_free_keyblock_contents(context, &key->keyblock);
+ free(key);
}
/* Retrieve a copy of the keyblock from a krb5_key. */
free(d3.data);
free(salt.data);
free(plaintext.data);
+ krb5_k_free_key(NULL, k3key);
return (ret);
}