The RtlFreeAnsiString routine releases storage that was allocated by RtlUnicodeStringToAnsiString.
VOID
RtlFreeAnsiString(
IN PANSI_STRING AnsiString
);
None
Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.
This routine does not release the Unicode string buffer passed to RtlUnicodeStringToAnsiString.
Callers of RtlFreeAnsiString must be running at IRQL = PASSIVE_LEVEL.