> >> +               if (dest->mont_data != NULL)
> >> +                   BN_MONT_CTX_free(dest->mont_data);
> >
> >Free routines don't need to check for non-NULL.
> 
> Yes, don’t *have* to. But does it hurt to check?

It makes folks wonder why the check is only there sometimes.  It adds to code  
complexity/test-coverage issues.
-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

Reply via email to