]> 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)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 3 Apr 2017 10:55:38 +0000 (13:55 +0300)
Found by coverity

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

index fba6e54cf660d47b0ce985ad44e08b29045a84cf..68670467646ad75b9ab684514467ea527c28c495 100644 (file)
@@ -217,8 +217,6 @@ var_expand_encrypt(struct var_expand_context *_ctx,
                ret = 1;
        }
 
-       dcrypt_ctx_sym_destroy(&dctx);
-
        return ret;
 }