FreeCalypso > hg > fc-pcsc-tools
comparison libcommon/cardconnect.c @ 32:b37fcb235848
recent libcommon/cardconnect.c change: missed
SCardReleaseContext() on error
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 12 Feb 2021 17:22:25 +0000 |
parents | 84d1c31d0fad |
children | 8a4f3d00d997 |
comparison
equal
deleted
inserted
replaced
31:be9984600bf8 | 32:b37fcb235848 |
---|---|
71 cp += strlen(cp) + 1; | 71 cp += strlen(cp) + 1; |
72 } | 72 } |
73 fprintf(stderr, | 73 fprintf(stderr, |
74 "error: requested reader #%u, but only %u readers found\n", | 74 "error: requested reader #%u, but only %u readers found\n", |
75 select_num, num); | 75 select_num, num); |
76 SCardReleaseContext(hContext); | |
76 exit(1); | 77 exit(1); |
77 } | 78 } |
78 | 79 |
79 connect_to_card() | 80 connect_to_card() |
80 { | 81 { |