Bug 253966

Summary: net-mgmt/net-snmp: stop leaking memory
Product: Ports & Packages Reporter: Jung-uk Kim <jkim>
Component: Individual Port(s)Assignee: Ryan Steinmetz <zi>
Status: Closed Overcome By Events    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (zi)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
Plug memory leaks from kvm_nlist(3) using kvm_nlist2(3) none

Description Jung-uk Kim freebsd_committer 2021-03-02 21:26:21 UTC
Created attachment 222928 [details]
Plug memory leaks from kvm_nlist(3) using kvm_nlist2(3)

A user reported net-snmp is leaking memory.  I found the root cause is kvm(3) itself.  Please see the following review request:


The attached patch should work around the problem until we fix the root cause on all supported versions.
Comment 1 Jung-uk Kim freebsd_committer 2021-03-03 23:38:21 UTC
I found another memory leak in libkvm but it is hard to work around from ports.  I am going to deal with the problem from src level.


Unfortunately, it will take some time to trickle down to releng/*. :-(