]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: cleanup unit's dropin directories from global cache
authorMichal Sekletar <msekleta@redhat.com>
Wed, 25 Feb 2026 18:45:55 +0000 (19:45 +0100)
committerMike Yuan <me@yhndnzj.com>
Thu, 5 Mar 2026 15:50:25 +0000 (16:50 +0100)
commit0c98e432d1def1e8428dbead50dc629ed0645366
tree18aa7200e91225b07ebfbd444576ac9f3717849e
parentc6b2ab09e70b3a531f111678ce1c8775bed540fb
core: cleanup unit's dropin directories from global cache

When user creates dropin files via API (e.g. systemctl set-property ...)
we put the dropin directory path into unit_path_cache. Drop those
directories from the cache in unit_free() and prevent memory leak.

Follow-up for fce94c5c563b8f6ede2b8f7f283d2d2faff4e062.
src/core/unit.c