1
mirror of https://github.com/monero-project/monero synced 2024-11-18 00:36:30 +01:00

device_ledger: fix bad memory access on connect error

This commit is contained in:
moneromooo-monero 2018-06-09 20:49:05 +01:00
parent e2c39f6b59
commit f40cf1a859
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -405,7 +405,7 @@ namespace hw {
}
}
if (mszReaders) {
if (rv == SCARD_S_SUCCESS && mszReaders) {
#ifdef SCARD_AUTOALLOCATE
SCardFreeMemory(this->hContext, mszReaders);
#else