Re: Memory Leak in snmplib/scapi.c

2018-10-09 Thread Bart Van Assche
On 10/9/18 4:28 PM, Roedersheimer, Drew A. wrote: After applying the patch, Valgrind shows no memory leaks. Thanks for the patch! A slightly modified patch has been applied on the master and v5.8 branches. Comments or questions are welcome. My company is planning to supply this patch to Re

Memory Leak in snmplib/scapi.c

2018-10-09 Thread Roedersheimer, Drew A.
I found a memory leak in the sc_hash()/sc_hash_type() function within snmplib/scapi.c. The leak was identified by running Valgrind on a SNMP client application which queries v3 servers using SHA/AES. Here's an example of the Valgrind memory leak trace (using net-snmp-5.7.2-28 from RHEL7): ==1