changeset 21494:6291f52aea85

imap: Free search updates on CLOSE
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Sun, 05 Feb 2017 16:23:35 +0200
parents f2d8b1c3773e
children 5f2cc5e42122
files src/imap/cmd-close.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/cmd-close.c	Sun Feb 05 16:10:44 2017 +0200
+++ b/src/imap/cmd-close.c	Sun Feb 05 16:23:35 2017 +0200
@@ -31,6 +31,8 @@
 	if (mailbox_sync(mailbox, 0) < 0)
 		client_send_untagged_storage_error(client, storage);
 
+	client_search_updates_free(client);
+
 	mailbox_free(&mailbox);
 	client_update_mailbox_flags(client, NULL);