summaryrefslogtreecommitdiff
path: root/src/test/test-watch-pid.c
diff options
context:
space:
mode:
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;
}