]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
analyze: replace set_free_free() with set_free()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 10 Apr 2025 23:42:52 +0000 (08:42 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 13 Apr 2025 01:00:57 +0000 (10:00 +0900)
set_put_strdup() uses &string_hash_ops_free, hence set_free() also
frees stored contents.

src/analyze/analyze-verify-util.c

index 97f5449b0be5ce3967b6c5ac02fbe12aae1b2591..04d9de381ec9fc8865b2d5e7f44328add4a379da 100644 (file)
@@ -31,7 +31,7 @@ static void log_syntax_callback(const char *unit, int level, void *userdata) {
 
         r = set_put_strdup(s, unit);
         if (r < 0) {
-                set_free_free(*s);
+                set_free(*s);
                 *s = POINTER_MAX;
         }
 }
@@ -265,7 +265,7 @@ static int verify_unit(Unit *u, bool check_man, const char *root) {
 static void set_destroy_ignore_pointer_max(Set **s) {
         if (*s == POINTER_MAX)
                 return;
-        set_free_free(*s);
+        set_free(*s);
 }
 
 int verify_units(