From: Timo Sirainen Date: Fri, 7 May 2021 18:15:04 +0000 (+0300) Subject: doveadm: Make doveadm_mail_cmd_free() public X-Git-Tag: 2.3.17~194 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f708052c5dae84947be7147987b944a35de16b35;p=thirdparty%2Fdovecot%2Fcore.git doveadm: Make doveadm_mail_cmd_free() public --- diff --git a/src/doveadm/doveadm-mail.c b/src/doveadm/doveadm-mail.c index 1db7257ef6..e6c512a4f7 100644 --- a/src/doveadm/doveadm-mail.c +++ b/src/doveadm/doveadm-mail.c @@ -675,7 +675,7 @@ doveadm_mail_cmd_exec(struct doveadm_mail_cmd_context *ctx, doveadm_exit_code = ctx->exit_code; } -static void doveadm_mail_cmd_free(struct doveadm_mail_cmd_context *ctx) +void doveadm_mail_cmd_free(struct doveadm_mail_cmd_context *ctx) { i_stream_unref(&ctx->users_list_input); i_stream_unref(&ctx->cmd_input); diff --git a/src/doveadm/doveadm-mail.h b/src/doveadm/doveadm-mail.h index 9d18721259..ff2c3ac165 100644 --- a/src/doveadm/doveadm-mail.h +++ b/src/doveadm/doveadm-mail.h @@ -124,6 +124,7 @@ void doveadm_mail_deinit(void); struct doveadm_mail_cmd_context * doveadm_mail_cmd_init(const struct doveadm_mail_cmd *cmd, const struct doveadm_settings *set); +void doveadm_mail_cmd_free(struct doveadm_mail_cmd_context *ctx); int doveadm_mail_single_user(struct doveadm_mail_cmd_context *ctx, const char **error_r); int doveadm_mail_server_user(struct doveadm_mail_cmd_context *ctx,