mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 10:01:02 +00:00
device_ledger: fix bad memory access on connect error
This commit is contained in:
parent
25e7a7d96f
commit
03096150c6
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,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 a new issue