From: Timo Sirainen Date: Mon, 17 Jun 2013 13:37:46 +0000 (+0300) Subject: pop3: Fixed crash at deinit X-Git-Tag: 2.2.4~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e4c91642c9cd76d35d84a0ecbc3c73fe14644a5;p=thirdparty%2Fdovecot%2Fcore.git pop3: Fixed crash at deinit --- diff --git a/src/pop3/pop3-client.c b/src/pop3/pop3-client.c index 6de571c201..688ccaba5a 100644 --- a/src/pop3/pop3-client.c +++ b/src/pop3/pop3-client.c @@ -593,7 +593,8 @@ static void client_default_destroy(struct client *client, const char *reason) message sizes. */ (void)mailbox_transaction_commit(&client->trans); } - array_free(&client->all_seqs); + if (array_is_created(&client->all_seqs)) + array_free(&client->all_seqs); if (client->deleted_kw != NULL) mailbox_keywords_unref(&client->deleted_kw); if (client->mailbox != NULL)