CRYPTO_free_ex_data(x509_store_ctx_method,ctx,&(ctx->ex_data));
CRYPTO_free_ex_data(CRYPTO_EX_INDEX_X509_STORE_CTX, ctx, &(ctx->ex_data));
void X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx)	{	if (ctx->cleanup) ctx->cleanup(ctx);	if (ctx->chain != NULL)		{		sk_X509_pop_free(ctx->chain,X509_free);		ctx->chain=NULL;		}	CRYPTO_free_ex_data(x509_store_ctx_method,ctx,&(ctx->ex_data));	memset(&ctx->ex_data,0,sizeof(CRYPTO_EX_DATA));	}