summaryrefslogtreecommitdiff
path: root/src/test/test-watch-pid.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-03-09 21:55:55 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-03-11 16:33:57 +0100
commitc70cac548aab08b9d9a20fec48afc4a4c86c7672 (patch)
tree62395c54a7446e51c690d35dc91b13939fa662d1 /src/test/test-watch-pid.c
parent9aa2e409bcb70f3952b38a35f16fc080c22dd5a5 (diff)
downloadsystemd-c70cac548aab08b9d9a20fec48afc4a4c86c7672.tar.gz
Introduce _cleanup_(manager_freep)
Diffstat (limited to 'src/test/test-watch-pid.c')
-rw-r--r--src/test/test-watch-pid.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/test-watch-pid.c b/src/test/test-watch-pid.c
index ed6c3d05cc..c280374582 100644
--- a/src/test/test-watch-pid.c
+++ b/src/test/test-watch-pid.c
@@ -8,8 +8,8 @@
int main(int argc, char *argv[]) {
_cleanup_(rm_rf_physical_and_freep) char *runtime_dir = NULL;
+ _cleanup_(manager_freep) Manager *m = NULL;
Unit *a, *b, *c, *u;
- Manager *m;
int r;
log_set_max_level(LOG_DEBUG);
@@ -90,7 +90,5 @@ int main(int argc, char *argv[]) {
unit_unwatch_pid(c, 4711);
assert_se(manager_get_unit_by_pid(m, 4711) == NULL);
- manager_free(m);
-
return 0;
}