diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-05-28 15:33:44 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-05-31 23:47:48 +0200 |
commit | 5d2a48da126e696dcd61baa75911d7f5fb2d076c (patch) | |
tree | bbc8aac0bd238dfd42fd29fc82d6e7e099ae976f /src/shared/elf-util.c | |
parent | oomd: drop unused key (diff) | |
download | systemd-5d2a48da126e696dcd61baa75911d7f5fb2d076c.tar.xz systemd-5d2a48da126e696dcd61baa75911d7f5fb2d076c.zip |
tree-wide: use _cleanup_set_free_ and friends
Instead of _cleanup_(set_freep) or so.
Diffstat (limited to 'src/shared/elf-util.c')
-rw-r--r-- | src/shared/elf-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/elf-util.c b/src/shared/elf-util.c index 5885215a1c..68d186117f 100644 --- a/src/shared/elf-util.c +++ b/src/shared/elf-util.c @@ -570,7 +570,7 @@ static int parse_core(int fd, const char *executable, char **ret, JsonVariant ** }; _cleanup_(json_variant_unrefp) JsonVariant *package_metadata = NULL; - _cleanup_(set_freep) Set *modules = NULL; + _cleanup_set_free_ Set *modules = NULL; _cleanup_free_ char *buf = NULL; /* buf should be freed last, c.f closed first (via stack_context_destroy) */ _cleanup_(stack_context_destroy) StackContext c = { .package_metadata = &package_metadata, @@ -636,7 +636,7 @@ static int parse_core(int fd, const char *executable, char **ret, JsonVariant ** static int parse_elf(int fd, const char *executable, char **ret, JsonVariant **ret_package_metadata) { _cleanup_(json_variant_unrefp) JsonVariant *package_metadata = NULL, *elf_metadata = NULL; - _cleanup_(set_freep) Set *modules = NULL; + _cleanup_set_free_ Set *modules = NULL; _cleanup_free_ char *buf = NULL; /* buf should be freed last, c.f closed first (via stack_context_destroy) */ _cleanup_(stack_context_destroy) StackContext c = { .package_metadata = &package_metadata, |