diff options
Diffstat (limited to 'scd/command.c')
-rw-r--r-- | scd/command.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scd/command.c b/scd/command.c index 9e571f228..d449eee52 100644 --- a/scd/command.c +++ b/scd/command.c @@ -73,9 +73,10 @@ reset_notify (ASSUAN_CONTEXT ctx) } if (ctrl->app_ctx) { - /* FIXME: close the application. */ - xfree (ctrl->app_ctx); + int slot = ctrl->app_ctx->slot; + release_application (ctrl->app_ctx); ctrl->app_ctx = NULL; + apdu_close_reader (slot); } } |