dovecot-2.1: lib-storage: Fixed memory leak getting MAILBOX_META...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Sep 11 19:14:31 EEST 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/3e1f1b6887c8
changeset: 14700:3e1f1b6887c8
user: Dafan Zhai <dafan.zhai at securepoint.de>
date: Tue Sep 11 19:14:09 2012 +0300
description:
lib-storage: Fixed memory leak getting MAILBOX_METADATA_VIRTUAL_SIZE
Function virtual_size_add_new forgets to free the 'search_args' object
after it searches the mails.
---
src/lib-storage/index/index-status.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffstat:
src/lib-storage/index/index-status.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 9f691edba099 -r 3e1f1b6887c8 src/lib-storage/index/index-status.c
--- a/src/lib-storage/index/index-status.c Tue Sep 11 18:42:05 2012 +0300
+++ b/src/lib-storage/index/index-status.c Tue Sep 11 19:14:09 2012 +0300
@@ -217,6 +217,7 @@
}
if (mailbox_search_deinit(&search_ctx) < 0)
ret = -1;
+ mail_search_args_unref(&search_args);
if (ret == 0) {
/* success, cache all */
More information about the dovecot-cvs
mailing list