Mercurial > dovecot > core-2.2
changeset 16528:1352949265cc
pop3: Fixed crash at deinit
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 17 Jun 2013 16:37:46 +0300 |
parents | 014003da870e |
children | ba720ff91a75 |
files | src/pop3/pop3-client.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pop3/pop3-client.c Mon Jun 17 14:39:59 2013 +0300 +++ b/src/pop3/pop3-client.c Mon Jun 17 16:37:46 2013 +0300 @@ -593,7 +593,8 @@ 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)