]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-load-fragment: fix memleak
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 21 Jan 2023 06:03:45 +0000 (15:03 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 21 Jan 2023 06:11:29 +0000 (15:11 +0900)
Fixes a leak reported at https://github.com/systemd/systemd/pull/26115#issuecomment-1398026085.

src/test/test-load-fragment.c

index 446437313224b4dbb6ec7edfe4c5d92dba3a70d4..288593e60350e6a154fee426117ceb24b501d249 100644 (file)
@@ -1047,6 +1047,8 @@ TEST(config_parse_log_filter_patterns) {
                 SET_FOREACH(p, c.log_filter_denied_patterns)
                         assert_se(p && p[0] != '~');
         }
+
+        exec_context_done(&c);
 }
 
 TEST(config_parse_open_file) {