static int mempacket_test_free(BIO *bio) { MEMPACKET_TEST_CTX *ctx = BIO_get_data(bio); sk_MEMPACKET_pop_free(ctx->pkts, mempacket_free); OPENSSL_free(ctx); BIO_set_data(bio, NULL); BIO_set_init(bio, 0); return 1; }
static int mempacket_test_free(BIO *bio) { MEMPACKET_TEST_CTX *ctx = bio->ptr; sk_MEMPACKET_pop_free(ctx->pkts, mempacket_free); free(ctx); bio->ptr = NULL; bio->init = 0; return 1; }