Attached patch fixes memory leak that described in #1062954 and #1034008 bugs. It`s were at least in 5.1.0, 5.1.1, 5.1.2 and 5.2rc3.
It also introduces some fixes to netsnmp_table_data_set_clone_row proc that can lead to memory leak. Instead of NULL pointer in the netsnmp_oid_stash_free call can be used reqinfo->agent_data->free_func. I don`t know what is better for this project (more stable version).
netsnmp-5.2rc3-fix-memory-leak.patch
Description: Binary data
