diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-04-05 07:26:26 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-04-05 07:26:26 +0200 |
commit | 1cc6c93a9569a9f2664d0d26cd0e50408307c430 (patch) | |
tree | 57e115a1beb9b097f731da79c3192015ff35cc94 /src/shared/cgroup-show.c | |
parent | network: fix typo in log message (diff) | |
download | systemd-1cc6c93a9569a9f2664d0d26cd0e50408307c430.tar.xz systemd-1cc6c93a9569a9f2664d0d26cd0e50408307c430.zip |
tree-wide: use TAKE_PTR() and TAKE_FD() macros
Diffstat (limited to 'src/shared/cgroup-show.c')
-rw-r--r-- | src/shared/cgroup-show.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/shared/cgroup-show.c b/src/shared/cgroup-show.c index 326a398075..ae2bfadffc 100644 --- a/src/shared/cgroup-show.c +++ b/src/shared/cgroup-show.c @@ -385,10 +385,8 @@ int show_cgroup_get_path_and_warn( return log_oom(); *ret = t; - } else { - *ret = root; - root = NULL; - } + } else + *ret = TAKE_PTR(root); return 0; } |