> All these checks for null are unnecessary: > > EVP_PKEY_free() decrements the reference count of key and, if the > reference count is zero, > frees it up. If key is NULL, nothing is done. > > > Let me add those functions to cocci nullfree script as well. Ack.