The FreeSid function frees a security identifier (SID) previously allocated by using the AllocateAndInitializeSid function.
PVOID FreeSid(
PSID pSid
// pointer to SID to free
);
This function does not return a value.
AllocateAndInitializeSid, SID