[EXT] Re: [PATCH v2] crypto/openssl: fix memory leaks in asym ops

Gowrishankar Muthukrishnan gmuthukrishn at marvell.com
Fri Nov 3 16:19:34 CET 2023


> 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.


More information about the dev mailing list