free card applications when erasing card

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3817 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
viktor.tarasov 2009-11-10 16:25:58 +00:00
parent 3603a22917
commit 81cc9d605f

View File

@ -266,6 +266,7 @@ cosm_erase_card(struct sc_profile *profile, struct sc_card *card)
sc_file_free(dir);
}
sc_free_apps(card);
done:
sc_keycache_forget_key(NULL, -1, -1);
sc_ctx_suppress_errors_off(card->ctx);