From a6ba8d2faa437cfa171834cbcbe81317750b27b7 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 10 Feb 2014 03:43:53 +0000 Subject: clang --analyze yielded bugs --- src/cipher.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/cipher.c') diff --git a/src/cipher.c b/src/cipher.c index 5040686..d6eae57 100644 --- a/src/cipher.c +++ b/src/cipher.c @@ -241,10 +241,8 @@ void cipher_aesctr_close(cipher_t* c) if(c->params_) { #ifndef USE_SSL_CRYPTO cipher_aesctr_param_t* params = c->params_; - if(params->handle_) - gcry_cipher_close(params->handle_); + gcry_cipher_close(params->handle_); #endif - free(c->params_); } } -- cgit v1.2.3