Merge pull request #3976

f40cf1a device_ledger: fix bad memory access on connect error (moneromooo-monero)
This commit is contained in:
luigi1111 2018-06-27 15:35:13 -05:00
commit 06b0f9e870
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
1 changed files with 1 additions and 1 deletions

View File

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