memory leak is fixed, type of word length is changed from DWORD to BYTE