remove unecessary XFREE

This commit is contained in:
Jacob Barthelmeh
2016-03-23 13:40:45 -06:00
parent 620e4fa5ca
commit 8f8f7ac152

View File

@@ -185,12 +185,6 @@ WOLFSSL_CTX* wolfSSL_CTX_new(WOLFSSL_METHOD* method)
if (ctx) { if (ctx) {
if (InitSSL_Ctx(ctx, method) < 0) { if (InitSSL_Ctx(ctx, method) < 0) {
WOLFSSL_MSG("Init CTX failed"); WOLFSSL_MSG("Init CTX failed");
/* check for case when wolfSSL_CTX_free does not free method */
if (ctx == NULL) {
XFREE(method, NULL, DYNAMIC_TYPE_METHOD);
}
wolfSSL_CTX_free(ctx); wolfSSL_CTX_free(ctx);
ctx = NULL; ctx = NULL;
} }