Re: Memory Leak in snmplib/keytools.c

2018-10-10 Thread Bart Van Assche
On 10/10/18 10:53 AM, Roedersheimer, Drew A. wrote: I searched for usage of EVP_MD_CTX_free()/EVP_MD_CTX_new() and found a similar memory leak in the generate_Ku() function within snmplib/keytools.c. Also this patch has been applied on the master and v5.8 branches. Thanks for the patch,

Memory Leak in snmplib/keytools.c

2018-10-10 Thread Roedersheimer, Drew A.
I searched for usage of EVP_MD_CTX_free()/EVP_MD_CTX_new() and found a similar memory leak in the generate_Ku() function within snmplib/keytools.c. I had to craft up a client app to force this error path, but Valgrind did confirm it: ==4091== 17,328 bytes in 361 blocks are definitely lost in