hxtool: Fix leak in acert sub-command

This commit is contained in:
Nicolas Williams
2026-01-05 21:36:17 -06:00
parent 50244ef92d
commit e74f785367

View File

@@ -3196,6 +3196,8 @@ acert(struct acert_options *opt, int argc, char **argv)
hx509_err(context, 1, ret, "Matching certificate did not meet "
"requirements");
hx509_cert_free(cert);
hx509_query_free(context, q);
hx509_certs_free(&certs);
free(sn);
return 0;
}