Set freed pointer to NULL avoiding double free.
This commit is contained in:
parent
b2ce309b28
commit
4596588e0f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user