Skip to content

Commit

Permalink
lib-storage: Fix memory leak in test-mail-storage
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen authored and villesavolainen committed May 26, 2017
1 parent 216ad31 commit dccb984
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib-storage/test-mail-storage.c
Expand Up @@ -102,6 +102,8 @@ static void test_mail_storage_errors(void)
test_assert(!storage.last_error_is_internal);

mail_storage_clear_error(&storage);
i_assert(array_count(&storage.error_stack) == 0);
array_free(&storage.error_stack);
test_end();
}

Expand Down Expand Up @@ -169,6 +171,8 @@ static void test_mail_storage_last_error_push_pop(void)
test_assert(!storage.last_error_is_internal);

mail_storage_clear_error(&storage);
i_assert(array_count(&storage.error_stack) == 0);
array_free(&storage.error_stack);
test_end();
}

Expand Down

0 comments on commit dccb984

Please sign in to comment.