diff options
Diffstat (limited to 'src/group.c')
-rw-r--r-- | src/group.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/group.c b/src/group.c index b69212e..80ab89e 100644 --- a/src/group.c +++ b/src/group.c @@ -24,7 +24,8 @@ static struct numset *group_numset; -void init_groups() +void +init_groups() { rp_group *g; @@ -38,6 +39,18 @@ void init_groups() list_add_tail (&g->node, &rp_groups); } +void +free_groups() +{ + rp_group *cur; + struct list_head *iter, *tmp; + + list_for_each_safe_entry (cur, iter, tmp, &rp_groups, node) + { + group_free (cur); + } +} + rp_group * group_new (int number, char *name) { |