dovecot-2.2: imap: Allocate LIST patterns from command pool so t...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Feb 25 17:48:20 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/6c9b182d9a8c
changeset: 15941:6c9b182d9a8c
user: Timo Sirainen <tss at iki.fi>
date: Thu Feb 21 19:58:39 2013 +0200
description:
imap: Allocate LIST patterns from command pool so they don't get corrupted in long runs.
diffstat:
src/imap/cmd-list.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 20ea109b30a7 -r 6c9b182d9a8c src/imap/cmd-list.c
--- a/src/imap/cmd-list.c Thu Feb 21 07:55:24 2013 +0200
+++ b/src/imap/cmd-list.c Thu Feb 21 19:58:39 2013 +0200
@@ -1026,7 +1026,7 @@
return TRUE;
}
if (imap_utf7_to_utf8(pattern, str) == 0)
- pattern = t_strdup(str_c(str));
+ pattern = p_strdup(cmd->pool, str_c(str));
array_append(&patterns, &pattern, 1);
str_truncate(str, 0);
}
@@ -1037,7 +1037,7 @@
return TRUE;
}
if (imap_utf7_to_utf8(pattern, str) == 0)
- pattern = str_c(str);
+ pattern = p_strdup(cmd->pool, str_c(str));
p_array_init(&patterns, cmd->pool, 1);
array_append(&patterns, &pattern, 1);
More information about the dovecot-cvs
mailing list