associations: fix leak in assocMaps.ifaces

New entries get added to ifaces whenever an object with associations is
detected, but the entries are never removed even if all the endpoints
are gone, leading to a memory leak.

Patch Tracking Bug: b/392190439
Upstream info / review: https://gerrit.openbmc.org/c/openbmc/phosphor-objmgr/+/77414
Upstream-Status: Submitted
Justification: Need patch to unblock production issues until the change is submiited and cherry-picked.
  - b/348064849 Object Mapper OOM Issue

Change-Id: Ide5439e4eaab7c70fb0331d59d59753905f45066
Signed-off-by: Benjamin Fair <benjaminfair@google.com>
Signed-off-by: Willy Tu <wltu@google.com>
Signed-off-by: Jane Kramer <jkrm@google.com>
Google-Bug-Id: 572860608
2 files changed
tree: dea4c3b696025a79d6b23747225ef09038415526
  1. fail-monitor/
  2. libmapper/
  3. src/
  4. subprojects/
  5. .clang-format
  6. .gitignore
  7. LICENSE
  8. meson.build
  9. meson.options
  10. OWNERS
  11. README.md
README.md

The Mapper

This repository contains the mapper, which assists in finding things on D-Bus. There is documentation about it here.

Prerequisites

Non-OpenBMC build dependencies are:

  • meson/ninja
  • boost
  • libsystemd
  • systemd
  • tinyxml2

Build

meson build && ninja -C build

Run Unit Tests

meson build && ninja -C build test

Clean the repository

rm -rf build