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: https://reviews.freebsd.org/D29019 The attached patch should work around the problem until we fix the root cause on all supported versions.
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. https://cgit.freebsd.org/src/commit/?id=645eaa2ccaed6eea801d07d6a092974fc1713896 Unfortunately, it will take some time to trickle down to releng/*. :-(