Re: [Dovecot] Memory leak by getting the virtual size of a IMAP folder

2012-09-11 Thread Timo Sirainen
On 6.9.2012, at 19.19, Dafan Zhai wrote: I think I have fixed this bug. The 'virtual_size_add_new' function in src/lib-storage/index/index-status.c creates a 'search_args' object and forgets to free it at the end. The function does call the 'mailbox_search_deinit' function but

Re: [Dovecot] Memory leak by getting the virtual size of a IMAP folder

2012-09-06 Thread Dafan Zhai
Hi I think I have fixed this bug. The 'virtual_size_add_new' function in src/lib-storage/index/index-status.c creates a 'search_args' object and forgets to free it at the end. The function does call the 'mailbox_search_deinit' function but 'mailbox_search_deinit' only frees the 'search_ctx'

[Dovecot] Memory leak by getting the virtual size of a IMAP folder

2012-09-05 Thread Dafan Zhai
Hi everyone, I am writing a dovecot statistic plugin, which calls the 'mailbox_get_metadata' function with MAILBOX_METADATA_VIRTUAL_SIZE as the 2nd parameter. enum mailbox_status_items metadata_items = MAILBOX_METADATA_VIRTUAL_SIZE; struct mailbox_metadata metadata;