mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Merge pull request #3977
0309615
device_ledger: fix bad memory access on connect error (moneromooo-monero)
This commit is contained in:
commit
31f47d72fe
@ -405,7 +405,7 @@ namespace hw {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mszReaders) {
|
if (rv == SCARD_S_SUCCESS && mszReaders) {
|
||||||
#ifdef SCARD_AUTOALLOCATE
|
#ifdef SCARD_AUTOALLOCATE
|
||||||
SCardFreeMemory(this->hContext, mszReaders);
|
SCardFreeMemory(this->hContext, mszReaders);
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user