Skip to content

Commit

Permalink
pkcs11: clean up secret key information
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmorgner authored and Jakuje committed Sep 21, 2023
1 parent 3bfc6b9 commit cbddca6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pkcs11/framework-pkcs15.c
Original file line number Diff line number Diff line change
Expand Up @@ -5310,7 +5310,11 @@ struct sc_pkcs11_object_ops pkcs15_profile_ops = {
static void
pkcs15_skey_release(void *object)
{
__pkcs15_release_object((struct pkcs15_any_object *)object);
struct pkcs15_skey_object *skey = (struct pkcs15_skey_object *) object;
struct sc_pkcs15_skey_info *skey_info = skey->info;
if (__pkcs15_release_object((struct pkcs15_any_object *)object) == 0)
if (skey_info)
sc_pkcs15_free_skey_info(skey_info);
}


Expand Down

0 comments on commit cbddca6

Please sign in to comment.