mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 02:58:51 +00:00
device_ledger: fix bad memory access on connect error
This commit is contained in:
parent
25e7a7d96f
commit
03096150c6
@ -396,7 +396,7 @@ namespace hw {
|
||||
}
|
||||
}
|
||||
|
||||
if (mszReaders) {
|
||||
if (rv == SCARD_S_SUCCESS && mszReaders) {
|
||||
#ifdef SCARD_AUTOALLOCATE
|
||||
SCardFreeMemory(this->hContext, mszReaders);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user