[openssl-dev] [openssl.org #4401] [PATCH] plug potential memory leak(s) in OpenSSL 1.1 pre 4 in 'ec_lib.c'

Blumenthal, Uri - 0553 - MITLL uri at ll.mit.edu
Tue Mar 8 20:18:50 UTC 2016


On 3/8/16, 15:01 , "openssl-dev on behalf of Salz, Rich via RT"
<openssl-dev-bounces at openssl.org on behalf of rt at openssl.org> wrote:

>
>> +               if (dest->mont_data != NULL)
>> +                   BN_MONT_CTX_free(dest->mont_data);
>
>Free routines don't need to check for non-NULL.

Yes, don’t *have* to. But does it hurt to check?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4324 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160308/029b8592/attachment.bin>


More information about the openssl-dev mailing list