free CyaSSL CTX count mutex

This commit is contained in:
toddouska 2013-04-17 13:25:02 -07:00
parent 38dec0b932
commit e38b4d5868

View File

@ -471,6 +471,7 @@ void FreeSSL_Ctx(CYASSL_CTX* ctx)
if (doFree) {
CYASSL_MSG("CTX ref count down to 0, doing full free");
SSL_CtxResourceFree(ctx);
FreeMutex(&ctx->countMutex);
XFREE(ctx, ctx->heap, DYNAMIC_TYPE_CTX);
}
else {