MINOR: acme: use acme_ctx_destroy() upon error
Use acme_ctx_destroy() instead of a simple free() upon error in the "acme renew" error handling. It's better to use this function to be sure than everything has been been freed.
This commit is contained in:
parent
b8a5270334
commit
6462f183ad
@ -2196,7 +2196,7 @@ err:
|
||||
HA_SPIN_UNLOCK(CKCH_LOCK, &ckch_lock);
|
||||
EVP_PKEY_free(pkey);
|
||||
ckch_store_free(newstore);
|
||||
free(ctx);
|
||||
acme_ctx_destroy(ctx);
|
||||
memprintf(&err, "%sCan't start the ACME client.\n", err ? err : "");
|
||||
return cli_dynerr(appctx, err);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user