free NULL cleanup 5a
[openssl.git] / crypto / evp / p_lib.c
index c9e971ed85ac692ab06a11c6728f247f402c74d7..c163e4782931459108ba98ac4a57b42992632f77 100644 (file)
@@ -401,8 +401,7 @@ void EVP_PKEY_free(EVP_PKEY *x)
     }
 #endif
     EVP_PKEY_free_it(x);
-    if (x->attributes)
-        sk_X509_ATTRIBUTE_pop_free(x->attributes, X509_ATTRIBUTE_free);
+    sk_X509_ATTRIBUTE_pop_free(x->attributes, X509_ATTRIBUTE_free);
     OPENSSL_free(x);
 }