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.2.29.rc1~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cbf8b2a12fa6f1c705aed2c7caaf999dd3518829;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 fba6e54cf6..6867046764 100644 --- a/src/plugins/var-expand-crypt/var-expand-crypt-plugin.c +++ b/src/plugins/var-expand-crypt/var-expand-crypt-plugin.c @@ -217,8 +217,6 @@ var_expand_encrypt(struct var_expand_context *_ctx, ret = 1; } - dcrypt_ctx_sym_destroy(&dctx); - return ret; }