From: Timo Sirainen Date: Fri, 13 Mar 2020 09:38:57 +0000 (+0200) Subject: imap: Clear SEARCHRES $ after closing mailbox X-Git-Tag: 2.3.11.2~526 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=704eec77b341db5761dac8c5bfbd87ecd5841579;p=thirdparty%2Fdovecot%2Fcore.git imap: Clear SEARCHRES $ after closing mailbox $ shouldn't have been preserved after a mailbox was SELECTed. --- diff --git a/src/imap/imap-commands-util.c b/src/imap/imap-commands-util.c index 5ca9330a1d..9f6ba31b61 100644 --- a/src/imap/imap-commands-util.c +++ b/src/imap/imap-commands-util.c @@ -85,6 +85,7 @@ void imap_client_close_mailbox(struct client *client) if (array_is_created(&client->fetch_failed_uids)) array_clear(&client->fetch_failed_uids); client_search_updates_free(client); + array_free(&client->search_saved_uidset); box = client->mailbox; client->mailbox = NULL;