free null cleanup finale
[openssl.git] / engines / ccgost / gost_ameth.c
index 0b694f5cf165920b4c7967f991b4781a1b8612ba..b6c47f086b0c43b43e8dc8d51b1c6940ad2cb143 100644 (file)
@@ -848,9 +848,7 @@ static int pkey_bits_gost(const EVP_PKEY *pk)
 /* ---------------------- ASN1 METHOD for GOST MAC  -------------------*/
 static void mackey_free_gost(EVP_PKEY *pk)
 {
-    if (pk->pkey.ptr) {
-        OPENSSL_free(pk->pkey.ptr);
-    }
+    OPENSSL_free(pk->pkey.ptr);
 }
 
 static int mac_ctrl_gost(EVP_PKEY *pkey, int op, long arg1, void *arg2)