free null cleanup finale
[openssl.git] / crypto / ecdh / ech_ossl.c
index 6297706a2a226acd3a1160b66ce4c1c25e938d67..ad3482fab754b1a6db8887484ef0a352418ffdd3 100644 (file)
@@ -206,7 +206,6 @@ static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key,
     if (ctx)
         BN_CTX_end(ctx);
     BN_CTX_free(ctx);
-    if (buf)
-        OPENSSL_free(buf);
+    OPENSSL_free(buf);
     return (ret);
 }