diff --git a/lib/hx509/hxtool.c b/lib/hx509/hxtool.c index 181dfbd23..c18685808 100644 --- a/lib/hx509/hxtool.c +++ b/lib/hx509/hxtool.c @@ -1592,6 +1592,8 @@ hxtool_ca(struct certificate_sign_options *opt, int argc, char **argv) hx509_certs_free(&certs); } + hx509_cert_free(cert); + return 0; }