[openssl-users] [openssl-dev] Is X509_free(NULL) ok?

Salz, Rich rsalz at akamai.com
Fri Dec 22 14:24:19 UTC 2017


>	if (ptr!= NULL) free(ptr);
  
That shouldn’t be necessary for OpenSSL.  If you find places where it is, please open an issue.
  
➢ BTW, "can handle" should explicitly say what happens.  Perhaps use the C 
    library text, which says:
    
    	If ptr is NULL, no operation is performed.
  
That is the wording we use.



More information about the openssl-users mailing list