summaryrefslogtreecommitdiff
path: root/group.c
diff options
context:
space:
mode:
Diffstat (limited to 'group.c')
-rw-r--r--group.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/group.c b/group.c
index e1ca5a1..7697e96 100644
--- a/group.c
+++ b/group.c
@@ -113,14 +113,9 @@ void group_add(char *gname, ENTRY *addme){
}
void group_rm(GROUP *g){
- ENTRY **e = get_entries(g->head, g->entry_count);
- int i;
- for(i = 0; i < g->entry_count; i++){
- entry_rm(e[i]);
- }
+ clear_entries(g->head);
- free(e);
free(g);
group_count--;
return;