Free memory with the proper tag.

Spotted by Gregor Brunmar (gregor dot brunmar at home dot se).

svn path=/trunk/; revision=28505
This commit is contained in:
Andrew Munger 2007-08-24 07:43:42 +00:00
parent dea1da8be6
commit e6b469c9c0

View file

@ -388,7 +388,7 @@ RtlFreeUnicodeString(IN PUNICODE_STRING UnicodeString)
if (UnicodeString->Buffer)
{
RtlpFreeStringMemory(UnicodeString->Buffer, TAG_ASTR);
RtlpFreeStringMemory(UnicodeString->Buffer, TAG_USTR);
RtlZeroMemory(UnicodeString, sizeof(UNICODE_STRING));
}
}