]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
var-expand-crypt: Do not free dcrypt context twice
authorAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 27 Mar 2017 06:34:50 +0000 (09:34 +0300)
committerGitLab <gitlab@git.dovecot.net>
Thu, 30 Mar 2017 17:48:59 +0000 (20:48 +0300)
Found by coverity

src/plugins/var-expand-crypt/var-expand-crypt-plugin.c

index 1e845a5688a26ed568e6c90a9dbf4bf39d66a3ac..251a1455c460564f0fed837c8582d25f56acb6ce 100644 (file)
@@ -214,8 +214,6 @@ var_expand_encrypt(struct var_expand_context *_ctx,
                ret = 1;
        }
 
-       dcrypt_ctx_sym_destroy(&dctx);
-
        return ret;
 }