From 4e4c91642c9cd76d35d84a0ecbc3c73fe14644a5 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 17 Jun 2013 16:37:46 +0300 Subject: [PATCH] pop3: Fixed crash at deinit --- src/pop3/pop3-client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.47.3