RtlFreeSid - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

NTSYSAPI
PVOID
NTAPI
RtlFreeSid(
    _In_ _Post_invalid_ PSID Sid
    );

#endif

View code on GitHub
#ifndef _NTRTL_FWD_H
// begin_forwarders
#ifndef PHNT_INLINE_FREE_FORWARDERS

//#define RtlFreeSid(Sid) RtlFreeHeap(RtlProcessHeap(), 0, (Sid))
FORCEINLINE
PVOID
NTAPI
RtlFreeSid(
    _In_ _Post_invalid_ PSID Sid
    )
{
    RtlFreeHeap(RtlProcessHeap(), 0, Sid);
    return NULL;
}

#endif
// end_forwarders
#endif

View code on GitHub

This function is documented in Windows Driver Kit.