]> git.ipfire.org Git - thirdparty/systemd.git/commit
portable: rework set handling in portable_detach()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 5 Jun 2020 12:06:02 +0000 (14:06 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 24 Jun 2020 08:38:15 +0000 (10:38 +0200)
commitd378ef708b123b5da9ce2a52ea9e8a838f63bddb
tree509c583b0e0abf1c12097872faaf35abc5316120
parentab9dd0b9975c69953cb73d6c04f1a6af0bb9d5fa
portable: rework set handling in portable_detach()

_cleanup_set_free_ is enough for unit_files, because unit_files is
allocated in set_put_strdup(), which uses string_hash_ops_free.

This fixes a leak if marker was already present in the table.
src/portable/portable.c