Set freed pointer to NULL avoiding double free.

This commit is contained in:
Armin Novak 2018-09-04 15:22:06 +02:00
parent b2ce309b28
commit 4596588e0f

View File

@ -501,6 +501,7 @@ static DWORD filter_device_by_name_w(wLinkedList* list, LPWSTR* mszReaders, DWOR
return 0;
free(*mszReaders);
*mszReaders = NULL;
rc = filter_device_by_name_a(list, &readers, cchReaders);
if (ConvertToUnicode(CP_UTF8, 0, &readers, rc, mszReaders, 0) != rc)