changeset 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 be9984600bf8
children 8a4f3d00d997
files libcommon/cardconnect.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libcommon/cardconnect.c	Fri Feb 12 17:14:59 2021 +0000
+++ b/libcommon/cardconnect.c	Fri Feb 12 17:22:25 2021 +0000
@@ -73,6 +73,7 @@
 	fprintf(stderr,
 		"error: requested reader #%u, but only %u readers found\n",
 		select_num, num);
+	SCardReleaseContext(hContext);
 	exit(1);
 }