Release scard context if not used

This commit is contained in:
Henrik Andersson 2017-07-07 13:12:38 +02:00
parent 82d99335a3
commit f616b2c1f9

View File

@ -696,6 +696,7 @@ TS_SCardEstablishContext(STREAM in, STREAM out)
logger(SmartCard, Debug,
"TS_SCardEstablishContext(), No readers connected, return no service to client.");
rv = SCARD_E_NO_SERVICE;
SCardReleaseContext(myHContext);
goto bail_out;
}