Small memory leak fix

This commit is contained in:
Zhang Xiaohui 2021-02-08 22:18:36 +08:00 committed by Frank Morgner
parent 1c4a01d766
commit 49788678fe
1 changed files with 1 additions and 0 deletions

View File

@ -123,6 +123,7 @@ int main(int argc, char *argv[])
/* Keep card locked to prevent useless calls to sc_logout */
if (i) {
fprintf(stderr, "failed: %s\n", sc_strerror(i));
sc_test_cleanup();
return 1;
}
printf("found.\n");