diff options
Diffstat (limited to 'scd/app.c')
-rw-r--r-- | scd/app.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -183,8 +183,12 @@ application_notify_card_reset (int slot) /* Release the APP, as it's not reusable any more. */ if (lock_table[slot].app) { + if (lock_table[slot].app->ref_count) + log_bug ("trying to release active context\n"); + deallocate_app (lock_table[slot].app); lock_table[slot].app = NULL; + log_debug ("application has been released\n"); } unlock_reader (slot); |