mirror of
https://github.com/reactos/reactos.git
synced 2024-08-11 05:37:59 +00:00
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:
parent
dea1da8be6
commit
e6b469c9c0
|
@ -388,7 +388,7 @@ RtlFreeUnicodeString(IN PUNICODE_STRING UnicodeString)
|
||||||
|
|
||||||
if (UnicodeString->Buffer)
|
if (UnicodeString->Buffer)
|
||||||
{
|
{
|
||||||
RtlpFreeStringMemory(UnicodeString->Buffer, TAG_ASTR);
|
RtlpFreeStringMemory(UnicodeString->Buffer, TAG_USTR);
|
||||||
RtlZeroMemory(UnicodeString, sizeof(UNICODE_STRING));
|
RtlZeroMemory(UnicodeString, sizeof(UNICODE_STRING));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue