From: Aki Tuomi Date: Mon, 27 Mar 2017 06:34:50 +0000 (+0300) Subject: var-expand-crypt: Do not free dcrypt context twice X-Git-Tag: 2.3.0.rc1~1832 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=820c323f80426fbd288358f885ac0cfe5a30db59;p=thirdparty%2Fdovecot%2Fcore.git var-expand-crypt: Do not free dcrypt context twice Found by coverity --- diff --git a/src/plugins/var-expand-crypt/var-expand-crypt-plugin.c b/src/plugins/var-expand-crypt/var-expand-crypt-plugin.c index 1e845a5688..251a1455c4 100644 --- a/src/plugins/var-expand-crypt/var-expand-crypt-plugin.c +++ b/src/plugins/var-expand-crypt/var-expand-crypt-plugin.c @@ -214,8 +214,6 @@ var_expand_encrypt(struct var_expand_context *_ctx, ret = 1; } - dcrypt_ctx_sym_destroy(&dctx); - return ret; }