aboutsummaryrefslogtreecommitdiff
path: root/gmid.c
diff options
context:
space:
mode:
Diffstat (limited to 'gmid.c')
-rw-r--r--gmid.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gmid.c b/gmid.c
index 30ffaa1..0af53f3 100644
--- a/gmid.c
+++ b/gmid.c
@@ -245,6 +245,7 @@ free_config(void)
struct vhost *h, *th;
struct location *l, *tl;
struct envlist *e, *te;
+ struct alist *a, *ta;
int v;
v = conf.verbose;
@@ -273,6 +274,11 @@ free_config(void)
free(e);
}
+ TAILQ_FOREACH_SAFE(a, &h->aliases, aliases, ta) {
+ free(a->alias);
+ free(a);
+ }
+
TAILQ_REMOVE(&hosts, h, vhosts);
free(h);
}