Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Rich Salz <rsalz@openssl.org>
GH: #580
ret->meth = meth;
ret->references = 1;
if ((ret->meth->init != NULL) && !ret->meth->init(ret)) {
ret->meth = meth;
ret->references = 1;
if ((ret->meth->init != NULL) && !ret->meth->init(ret)) {
+ sk_void_free(ret->meth_data);
OPENSSL_free(ret);
ret = NULL;
}
OPENSSL_free(ret);
ret = NULL;
}
* If we lost the race to set the context, c is non-NULL and *ctx is the
* context of the thread that won.
*/
* If we lost the race to set the context, c is non-NULL and *ctx is the
* context of the thread that won.
*/
+ if (c)
+ sk_OPENSSL_STRING_free(c->dirs);
OPENSSL_free(c);
return 1;
}
OPENSSL_free(c);
return 1;
}