summaryrefslogtreecommitdiff
path: root/src/login/logind.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-01-24 04:56:44 +0100
committerLennart Poettering <lennart@poettering.net>2013-01-24 04:56:44 +0100
commitaf9792ac7f39354f80e9006c42c2400c5e41c447 (patch)
tree07fb7a3aa9ebf72f1f4f1654d778538bfd00afd3 /src/login/logind.c
parenta4cc3e5ccc0a3033d764a9eb3ae5ee90db560682 (diff)
logind: only allow one shutdown/sleep action to be queued at the same time
This should make sure that closing the lid while shutting down won't suspend the machine but will simply cause the shutdown to complete.
Diffstat (limited to 'src/login/logind.c')
-rw-r--r--src/login/logind.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/login/logind.c b/src/login/logind.c
index 6776229ee7..ed0b7489b9 100644
--- a/src/login/logind.c
+++ b/src/login/logind.c
@@ -187,6 +187,8 @@ void manager_free(Manager *m) {
strv_free(m->kill_only_users);
strv_free(m->kill_exclude_users);
+ free(m->action_job);
+
free(m->cgroup_path);
free(m);
}