Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from openssl#22037)
  • Loading branch information
hlandau authored and pull[bot] committed Mar 22, 2024
1 parent 2b0d17e commit 1503327
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions ssl/quic/qlog.c
Expand Up @@ -162,8 +162,7 @@ void ossl_qlog_free(QLOG *qlog)
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);
Expand Down
2 changes: 1 addition & 1 deletion test/json_test.c
Expand Up @@ -43,7 +43,7 @@ static void helper_cleanup(struct helper *h)
BIO_free_all(h->mem_bio);
h->mem_bio = NULL;

if (!h->init) {
if (h->init) {
ossl_json_cleanup(&h->j);
h->init = 0;
}
Expand Down

0 comments on commit 1503327

Please sign in to comment.