Cleaning-up an NvSciIpc Endpoint

Once read/write is completed, you must free and clean the resources that were allocated by NvSciIpc endpoints.

Clean up the Endpoint

NvSciIpcEndpoint ipcEndpoint;
bool clear = false;
err = NvSciIpcCloseEndpointSafe(ipcEndpoint, clear);
if (err != NvSciError_Success) {
        goto fail;
}