free NULL cleanup
[openssl.git] / apps / dgst.c
index ac3b583793b9a8ad3dcdfa6e242c9d23b0e7ad04..700600011cd486df912469d12ad3a730adacdbdc 100644 (file)
@@ -384,8 +384,7 @@ int MAIN(int argc, char **argv)
         }
         r = 1;
  mac_end:
-        if (mac_ctx)
-            EVP_PKEY_CTX_free(mac_ctx);
+        EVP_PKEY_CTX_free(mac_ctx);
         if (r == 0)
             goto end;
     }