From 703f7e2823ff8d6ce751387bca795c3694ce57a2 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 21 Jun 2010 17:14:55 +0100 Subject: [PATCH] doveadm: Don't crash with tab formatter at deinit. --HG-- branch : HEAD --- src/doveadm/doveadm-print.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/doveadm/doveadm-print.c b/src/doveadm/doveadm-print.c index ad6e8d39ac..fbd5b6a40d 100644 --- a/src/doveadm/doveadm-print.c +++ b/src/doveadm/doveadm-print.c @@ -147,7 +147,8 @@ void doveadm_print_deinit(void) if (ctx->v->flush != NULL) ctx->v->flush(); - ctx->v->deinit(); + if (ctx->v->deinit != NULL) + ctx->v->deinit(); array_foreach_modifiable(&ctx->headers, hdr) i_free(hdr->sticky_value); pool_unref(&ctx->pool); -- 2.47.3