free CyaSSL CTX count mutex

pull/1/head
toddouska 2013-04-17 13:25:02 -07:00
parent 38dec0b932
commit e38b4d5868
1 changed files with 1 additions and 0 deletions

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 {