]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/format-table.c
json: free array in json_variant_unref_many()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 12 Jul 2023 12:10:47 +0000 (14:10 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 12 Jul 2023 18:05:20 +0000 (20:05 +0200)
commitee9d31a6085faf1870db5f956f402b15be5a9703
treef00f3161699c4922f40313e104289274cfa5f5a6
parent25077313747218f977e72bcd26af19ff477e3a7f
json: free array in json_variant_unref_many()

This allows using it with CLEANUP_ARRAY(). For the 2 call sites
where we don't need to free the array, we do a regular for loop
calling json_variant_unref() instead.
src/busctl/busctl.c
src/network/networkd-json.c
src/shared/format-table.c
src/shared/json.c
src/shared/logs-show.c
src/shared/tpm2-util.c