Skip to content

Commit

Permalink
director: Don't access freed memory during deinit
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Nov 11, 2016
1 parent ecd54ac commit 321750a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/director/mail-host.c
Expand Up @@ -532,10 +532,10 @@ void mail_hosts_deinit(struct mail_host_list **_list)

*_list = NULL;

array_foreach(&list->hosts, hostp)
mail_host_free(*hostp);
array_foreach(&list->tags, tagp)
mail_tag_free(*tagp);
array_foreach(&list->hosts, hostp)
mail_host_free(*hostp);
array_free(&list->hosts);
array_free(&list->tags);
i_free(list);
Expand Down

0 comments on commit 321750a

Please sign in to comment.