]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm pw -l: Free all memory to avoid memory leak complaints
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 17 Aug 2021 07:50:34 +0000 (10:50 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 17 Aug 2021 11:48:20 +0000 (11:48 +0000)
src/doveadm/doveadm-pw.c

index 4f46a9de3e98cbfcfc29c5b43337b3625f29bfed..ed85006662827fd78d5313a8ee619681ca94e19f 100644 (file)
@@ -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);