From 49788678fe7245f03e8e2dae5fe3df95c578fb7e Mon Sep 17 00:00:00 2001 From: Zhang Xiaohui Date: Mon, 8 Feb 2021 22:18:36 +0800 Subject: [PATCH] Small memory leak fix --- src/tests/p15dump.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/p15dump.c b/src/tests/p15dump.c index da8b4a3e..5e146c52 100644 --- a/src/tests/p15dump.c +++ b/src/tests/p15dump.c @@ -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");