Skip to content

Commit

Permalink
lib-storage: Fix memory leak in mail_storage_set_internal_error()
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Aug 22, 2018
1 parent c888490 commit f39064b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib-storage/mail-storage.c
Expand Up @@ -542,6 +542,7 @@ void mail_storage_set_internal_error(struct mail_storage *storage)
/* this function doesn't set last_internal_error, so
last_error_is_internal can't be TRUE. */
storage->last_error_is_internal = FALSE;
i_free(storage->last_internal_error);
}

void mail_storage_set_critical(struct mail_storage *storage,
Expand Down

0 comments on commit f39064b

Please sign in to comment.