aboutsummaryrefslogtreecommitdiff
path: root/gmid.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-04-29 18:23:35 +0000
committerOmar Polo <op@omarpolo.com>2021-04-29 18:23:35 +0000
commitcc8c2901ad544d336374887451dc8c85a5ae1264 (patch)
tree46f42e9929fd44cf9bf94a9a2b6a81de2f72a517 /gmid.c
parent8e8b2e252c37a1e633c33ac923ab78c3f1e8ab31 (diff)
added ``alias'' option to define hostname aliases for a server
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);
}