RFR: JDK-8312512: sspi.cpp gss_export_name avoid delete on NULL fullname [v2]

Matthias Baesken mbaesken at openjdk.org
Mon Jul 24 11:30:31 UTC 2023


On Mon, 24 Jul 2023 11:01:07 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:

> `free`, `delete` and `delete[]` are all safe to call on a NULL pointer.
> 
> I noticed that we are checking for NULL in other places in this file; could you remove these checks?

Hi, I found and adjusted a number of places where the pointer ws checked for NULL before calling free/delete in this file.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14989#issuecomment-1647726508


More information about the security-dev mailing list