Skip to content

Commit

Permalink
lib-storage: Code cleanup - remove unnecessary temporary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Mar 2, 2018
1 parent c415d35 commit caf4c4b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib-storage/index/index-mail.c
Expand Up @@ -2062,8 +2062,6 @@ void index_mail_set_uid_cache_updates(struct mail *_mail, bool set)
void index_mail_free(struct mail *_mail)
{
struct index_mail *mail = INDEX_MAIL(_mail);
struct mailbox_header_lookup_ctx *headers_ctx =
(struct mailbox_header_lookup_ctx *)mail->mail.wanted_headers;

/* make sure mailbox_search_*() users don't try to free the mail
directly */
Expand All @@ -2083,7 +2081,7 @@ void index_mail_free(struct mail *_mail)
if (array_is_created(&mail->header_match_lines))
array_free(&mail->header_match_lines);

mailbox_header_lookup_unref(&headers_ctx);
mailbox_header_lookup_unref(&mail->mail.wanted_headers);
event_unref(&_mail->event);
pool_unref(&mail->mail.data_pool);
pool_unref(&mail->mail.pool);
Expand Down

0 comments on commit caf4c4b

Please sign in to comment.