]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: use _cleanup_set_free_ where appropriate 15635/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 29 Apr 2020 12:53:26 +0000 (14:53 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 6 May 2020 15:08:17 +0000 (17:08 +0200)
If we already have the helper defined, let's use it instead of open-coding.

src/core/dbus-unit.c
src/test/test-prioq.c

index 75e906064952c7b4e2db34946c70f4b4579dac3b..dedc39566644aa4d4c9ee715df3cf982856d7f6e 100644 (file)
@@ -1724,7 +1724,7 @@ int bus_unit_queue_job(
 
         _cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL;
         _cleanup_free_ char *job_path = NULL, *unit_path = NULL;
-        _cleanup_(set_freep) Set *affected = NULL;
+        _cleanup_set_free_ Set *affected = NULL;
         Iterator i;
         Job *j, *a;
         int r;
index 21d5b44fbb69454c69f1fec7adbd5cf03ba0d634..50f66cb970b280f49d62e2d2bb768cbdd8f1bdff 100644 (file)
@@ -60,7 +60,7 @@ DEFINE_PRIVATE_HASH_OPS(test_hash_ops, struct test, test_hash, test_compare);
 
 static void test_struct(void) {
         _cleanup_(prioq_freep) Prioq *q = NULL;
-        _cleanup_(set_freep) Set *s = NULL;
+        _cleanup_set_free_ Set *s = NULL;
         unsigned previous = 0, i;
         struct test *t;