mirror of
https://git.wownero.com/wownero/wownero.git
synced 2025-01-23 03:18:34 +00:00
device_ledger: fix bad memory access on connect error
This commit is contained in:
parent
e2c39f6b59
commit
f40cf1a859
@ -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…
x
Reference in New Issue
Block a user