test-path-util,test-sched-prio: uninitialize manager to appease valgrind
This commit is contained in:
@@ -56,7 +56,7 @@ static void test_path(void) {
|
||||
assert_se(streq(path_get_file_name("file.../"), ""));
|
||||
|
||||
#define test_parent(x, y) { \
|
||||
char *z; \
|
||||
char _cleanup_free_ *z = NULL; \
|
||||
int r = path_get_parent(x, &z); \
|
||||
printf("expected: %s\n", y ? y : "error"); \
|
||||
printf("actual: %s\n", r<0 ? "error" : z); \
|
||||
|
||||
@@ -88,5 +88,7 @@ int main(int argc, char *argv[]) {
|
||||
assert_se(ser->exec_context.cpu_sched_policy == SCHED_RR);
|
||||
assert_se(ser->exec_context.cpu_sched_priority == 99);
|
||||
|
||||
manager_free(m);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -190,6 +190,8 @@ static int test_unit_printf(void) {
|
||||
expect(u2, "%H", host);
|
||||
expect(u2, "%t", "/run/user/*");
|
||||
|
||||
manager_free(m);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user