From: Timo Sirainen Date: Mon, 7 Dec 2020 10:40:22 +0000 (+0200) Subject: lib-storage: test_mail_storage_deinit() - Don't try to clear freed memory X-Git-Tag: 2.3.14.rc1~229 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=200eb973c28554d8b0718e0ef57859e471124401;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: test_mail_storage_deinit() - Don't try to clear freed memory ctx was already freed. Trying to memset() into it will just result in writing to already freed memory. --- diff --git a/src/lib-storage/test-mail-storage-common.c b/src/lib-storage/test-mail-storage-common.c index dc93e94bf3..6c77ec1c02 100644 --- a/src/lib-storage/test-mail-storage-common.c +++ b/src/lib-storage/test-mail-storage-common.c @@ -57,8 +57,6 @@ void test_mail_storage_deinit(struct test_mail_storage_ctx **_ctx) io_loop_destroy(&ctx->ioloop); pool_unref(&ctx->pool); - - i_zero(ctx); } void test_mail_storage_init_user(struct test_mail_storage_ctx *ctx,