Bug 253966 - net-mgmt/net-snmp: stop leaking memory
Summary: net-mgmt/net-snmp: stop leaking memory
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Ryan Steinmetz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-02 21:26 UTC by Jung-uk Kim
Modified: 2021-03-03 23:38 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (zi)


Attachments
Plug memory leaks from kvm_nlist(3) using kvm_nlist2(3) (2.35 KB, patch)
2021-03-02 21:26 UTC, Jung-uk Kim
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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:

https://reviews.freebsd.org/D29019

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.

https://cgit.freebsd.org/src/commit/?id=645eaa2ccaed6eea801d07d6a092974fc1713896

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