PeekNamedPipeAsync(HANDLE pipe, DWORD count, LPHANDLE events)
{
    return AsyncPipeOp(peek, pipe, NULL, 0, count, events);
}

The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations.