From: Timo Sirainen Date: Tue, 17 Aug 2021 07:50:34 +0000 (+0300) Subject: doveadm pw -l: Free all memory to avoid memory leak complaints X-Git-Tag: 2.3.17~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=654d7b2d11fd707cfb97ff0635669cf80dd27813;p=thirdparty%2Fdovecot%2Fcore.git doveadm pw -l: Free all memory to avoid memory leak complaints --- diff --git a/src/doveadm/doveadm-pw.c b/src/doveadm/doveadm-pw.c index 4f46a9de3e..ed85006662 100644 --- a/src/doveadm/doveadm-pw.c +++ b/src/doveadm/doveadm-pw.c @@ -63,7 +63,9 @@ static void cmd_pw(struct doveadm_cmd_context *cctx) for (i = 0; i < count; i++) printf("%s ", schemes[i]->name); printf("\n"); - lib_exit(0); + module_dir_unload(&modules); + password_schemes_deinit(); + return; } scheme = scheme == NULL ? DEFAULT_SCHEME : t_str_ucase(scheme);