diff --git a/lib/hx509/hxtool.c b/lib/hx509/hxtool.c index eeb2708ce..62d0defff 100644 --- a/lib/hx509/hxtool.c +++ b/lib/hx509/hxtool.c @@ -468,6 +468,9 @@ print_certificate(hx509_context hxcontext, hx509_cert cert, int verbose) hx509_validate_ctx_add_flags(vctx, HX509_VALIDATE_F_VERBOSE); hx509_validate_cert(hxcontext, vctx, cert); + + hx509_validate_ctx_free(vctx); + } }