diff options
Diffstat (limited to 'imap/mailboxlist.c')
| -rw-r--r-- | imap/mailboxlist.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/imap/mailboxlist.c b/imap/mailboxlist.c index 41c873e..ce6cf55 100644 --- a/imap/mailboxlist.c +++ b/imap/mailboxlist.c @@ -96,7 +96,8 @@ const char *maildir_shared_index_file() if (p && *p) { - const char *q=auth_getoptionenv("sharedgroup"); + char *opt=auth_getoptionenv("sharedgroup"); + const char *q=opt; if (!q) q=""; @@ -106,6 +107,8 @@ const char *maildir_shared_index_file() write_error_exit(0); strcat(strcpy(filenamep, p), q); + if (opt) + free(opt); } } |
