alloc-util: add free_many() helper
authorLennart Poettering <lennart@poettering.net>
Wed, 23 Aug 2023 12:29:40 +0000 (14:29 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 24 Aug 2023 13:04:33 +0000 (15:04 +0200)
commit24ae45cb65dedb34297188e056874cc944a4d1c8
treed731d345191e105900d143d2151fff52ee472b7c
parenta16e19c61d4e3ccfb853474220002d2c48dc33a1
alloc-util: add free_many() helper

We often free an array of things. Let's create a common helper for this,
and port some potential users over. (Not all, too lazy for that for
now).
src/basic/alloc-util.h
src/basic/cgroup-util.c
src/basic/extract-word.c
src/basic/locale-util.c
src/basic/rlimit-util.c
src/basic/strv.c
src/core/socket.c
src/core/unit.c
src/libsystemd-network/sd-dhcp-lease.c