]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: Clear SEARCHRES $ after closing mailbox
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 13 Mar 2020 09:38:57 +0000 (11:38 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Fri, 20 Mar 2020 08:03:57 +0000 (08:03 +0000)
$ shouldn't have been preserved after a mailbox was SELECTed.

src/imap/imap-commands-util.c

index 5ca9330a1d22d5e7b8bc0f67a101e8279de132ac..9f6ba31b619f330998ad1f2ffc4f043186168226 100644 (file)
@@ -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;