[Bug 242746] ifconfig: Deleting (or re-setting) an IP address holds (leaks?) memory

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Dec 27 01:13:24 UTC 2019


--- Comment #6 from commit-hook at freebsd.org ---
A commit references this bug:

Author: markj
Date: Fri Dec 27 01:12:54 UTC 2019
New revision: 356107
URL: https://svnweb.freebsd.org/changeset/base/356107

  Plug some ifaddr refcount leaks.

  - Only take an ifaddr ref in in rt_exportinfo() if the caller explicitly
    requests it.  Take care to release it in this case.
  - Don't unconditionally take a ref in rtrequest1_fib().  rt_getifa_fib()
    will acquire a reference, in which case we would previously acquire
    two references.
  - Stop taking a reference in rtinit1() before calling rtrequest1_fib().
    rtrequest1_fib() will acquire a reference for the RTM_ADD case.

  PR:           242746
  Reviewed by:  melifaro (previous version)
  Tested by:    ghuckriede at blackberry.com
  MFC after:    1 week
  Sponsored by: The FreeBSD Foundation
  Differential Revision:        https://reviews.freebsd.org/D22912


You are receiving this mail because:
You are on the CC list for the bug.

More information about the freebsd-net mailing list