summaryrefslogtreecommitdiff
path: root/src/login/logind-dbus.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-10-10 09:52:58 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-10-10 09:58:47 +0200
commit43e94f86c0afb9a66624a42fc3102846042e1728 (patch)
treed86d2d1ef689c55ba251e192f9d291e48c61a735 /src/login/logind-dbus.c
parentbf135d82585f9a6356fa818fe4c130d3e3524918 (diff)
downloadsystemd-43e94f86c0afb9a66624a42fc3102846042e1728.tar.gz
logind: fix taking of inhibitors
Ooops made in 0a9bf7fa593682326f1c5c2d7ec3d29a9d59e5cb.
Diffstat (limited to 'src/login/logind-dbus.c')
-rw-r--r--src/login/logind-dbus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
index 01ffbb6bad..0f83ed99bc 100644
--- a/src/login/logind-dbus.c
+++ b/src/login/logind-dbus.c
@@ -3299,6 +3299,7 @@ static int method_inhibit(sd_bus_message *message, void *userdata, sd_bus_error
r = inhibitor_start(i);
if (r < 0)
return r;
+ TAKE_PTR(i);
return sd_bus_reply_method_return(message, "h", fifo_fd);
}