diff options
author | Omar Polo <op@omarpolo.com> | 2023-07-23 19:30:14 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-07-23 19:30:14 +0000 |
commit | 45c946b37bd2e22f095af6ac290fbf865eb595a1 (patch) | |
tree | ed65741f3d1ee05a984781481acbecda8b14d9ba /config.c | |
parent | 3d56cb53361a531d410d116cbc752e07d20dfa05 (diff) |
avoid use-after-free
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -96,12 +96,13 @@ config_purge(struct conf *conf) free(l->reqca_path); X509_STORE_free(l->reqca); - free(l); TAILQ_FOREACH_SAFE(e, &l->params, envs, te) { TAILQ_REMOVE(&l->params, e, envs); free(e); } + + free(l); } TAILQ_FOREACH_SAFE(a, &h->aliases, aliases, ta) { |