diff options
author | Franck Bui <fbui@suse.com> | 2018-01-12 16:09:21 +0100 |
---|---|---|
committer | Franck Bui <fbui@suse.com> | 2018-01-12 16:09:21 +0100 |
commit | a3c56345735ed3154fbb218f73ef8a4a54f763b7 (patch) | |
tree | 1d9fc13817c97d49d540d2a1292de183fbb240c6 /src/locale/localectl.c | |
parent | 59dda97f7f6afecfcc9c96c1559848b688d5f3ec (diff) | |
download | systemd-a3c56345735ed3154fbb218f73ef8a4a54f763b7.tar.gz |
Revert "tree-wide: use _cleanup_(sd_bus_flush_close_unrefp) at various appropriate places"
This reverts commit 0b3c84eb7da3a8c28ac248a68228f6a7edbb2e19.
The removal of _cleanup_() usages was done on purpose, see
cf647b69baee4c478d3909c327e3d917e1563f44.
Fixes: #3543
Diffstat (limited to 'src/locale/localectl.c')
-rw-r--r-- | src/locale/localectl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/locale/localectl.c b/src/locale/localectl.c index f09fe42626..421434c814 100644 --- a/src/locale/localectl.c +++ b/src/locale/localectl.c @@ -595,7 +595,7 @@ static int localectl_main(sd_bus *bus, int argc, char *argv[]) { } int main(int argc, char*argv[]) { - _cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL; + sd_bus *bus = NULL; int r; setlocale(LC_ALL, ""); @@ -615,6 +615,7 @@ int main(int argc, char*argv[]) { r = localectl_main(bus, argc, argv); finish: + sd_bus_flush_close_unref(bus); pager_close(); return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS; |