Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22037)
if (qlog == NULL)
return;
- ossl_json_flush(&qlog->json);
- ossl_json_cleanup(&qlog->json);
+ ossl_json_flush_cleanup(&qlog->json);
BIO_free_all(qlog->bio);
OPENSSL_free((char *)qlog->info.title);
OPENSSL_free((char *)qlog->info.description);
BIO_free_all(h->mem_bio);
h->mem_bio = NULL;
- if (!h->init) {
+ if (h->init) {
ossl_json_cleanup(&h->j);
h->init = 0;
}