Hello. It looks like a posible bug that leads to a memory leak. File: pcsclite.cpp:262. The SCardListReaders() function allocate memory for readers_name (in case if SCARD_AUTOALLOCATE is defined) and you must release this memory using the SCardFreeMemory() function. I have not found a call of the SCardFreeMemory() function in the source code. Is it ok?
Hello. It looks like a posible bug that leads to a memory leak. File: pcsclite.cpp:262. The
SCardListReaders()
function allocate memory forreaders_name
(in case ifSCARD_AUTOALLOCATE
is defined) and you must release this memory using theSCardFreeMemory()
function. I have not found a call of theSCardFreeMemory()
function in the source code. Is it ok?