FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/src/sniffer.c
/* Free Sniffer Server's resources/self */
Free Sniffer Server's resources/self
Free Sniffer Server ' s resources / self
static void FreeSnifferServer(SnifferServer* srv)
{
    if (srv) {
#ifdef HAVE_SNI
        wc_LockMutex(&srv->namedKeysMutex);
        FreeNamedKeyList(srv->namedKeys);
        wc_UnLockMutex(&srv->namedKeysMutex);
        wc_FreeMutex(&srv->namedKeysMutex);
#endif
        wolfSSL_CTX_free(srv->ctx);
    }
    XFREE(srv, NULL, DYNAMIC_TYPE_SNIFFER_SERVER);
}
static void FreeSnifferServer ( SnifferServer * srv ) { if ( srv ) { #ifdef HAVE_SNI wc_LockMutex ( & srv -> namedKeysMutex ) ; FreeNamedKeyList ( srv -> namedKeys ) ; wc_UnLockMutex ( & srv -> namedKeysMutex ) ; wc_FreeMutex ( & srv -> namedKeysMutex ) ; #endif wolfSSL_CTX_free ( srv -> ctx ) ; } XFREE ( srv , NULL , DYNAMIC_TYPE_SNIFFER_SERVER ) ; }
Free Sniffer Server's resources/self
Free Sniffer Server ' s resources / self