Use krb5_free_keyblock()

This commit is contained in:
Love Hornquist Astrand
2009-10-11 08:45:51 -07:00
parent 2a369fc7fe
commit 8e08aa0a15

View File

@@ -574,10 +574,8 @@ out:
free_METHOD_DATA(&padata);
krb5_data_free(&resp);
krb5_data_free(&enc);
if(subkey){
krb5_free_keyblock_contents(context, subkey);
free(subkey);
}
if(subkey)
krb5_free_keyblock(context, subkey);
return ret;
}