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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/22/2017 8:06 AM, Salz, Rich via openssl-users wrote:
Our intent is that all FREE functions can handle NULL.  If you find
things missing or undocumented, please open an issue on GitHub.
Thanks!

It would be great if that was documented for all _free() functions. I currently always code

	if (ptr!= NULL) free(ptr);

because the behavior isn't defined.

BTW, "can handle" should explicitly say what happens. Perhaps use the C library text, which says:

	If ptr is NULL, no operation is performed.




--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux